-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from arrow-kt/write-docs
Write documentation for first release
- Loading branch information
Showing
5 changed files
with
294 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,3 +92,7 @@ tasks { | |
delete(docsContent) | ||
} | ||
} | ||
|
||
apiValidation { | ||
ignoredProjects.add("example") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
// TODO fix setup for Main-Class | ||
// jvm() | ||
js(IR) { | ||
nodejs { | ||
binaries.executable() | ||
} | ||
} | ||
|
||
linuxX64 { | ||
binaries.executable() | ||
} | ||
mingwX64 { | ||
binaries.executable() | ||
} | ||
macosArm64 { | ||
binaries.executable() | ||
} | ||
macosX64 { | ||
binaries.executable() | ||
} | ||
|
||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
implementation(project.rootProject) | ||
implementation("io.arrow-kt:arrow-fx-coroutines:1.1.3-alpha.37") | ||
} | ||
} | ||
|
||
// val jvmMain by getting | ||
val jsMain by getting | ||
val mingwX64Main by getting | ||
val linuxX64Main by getting | ||
val macosArm64Main by getting | ||
val macosX64Main by getting | ||
|
||
create("nativeMain") { | ||
dependsOn(commonMain) | ||
mingwX64Main.dependsOn(this) | ||
linuxX64Main.dependsOn(this) | ||
macosArm64Main.dependsOn(this) | ||
macosX64Main.dependsOn(this) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import arrow.continuations.SuspendApp | ||
import arrow.fx.coroutines.Resource | ||
import kotlinx.coroutines.awaitCancellation | ||
import kotlinx.coroutines.delay | ||
|
||
fun main() = SuspendApp { | ||
Resource( | ||
acquire = { println("Creating some resource") }, | ||
release = { _, exitCase -> | ||
println("ExitCase: $exitCase") | ||
println("Shutting down will take 10 seconds") | ||
delay(10_000) | ||
println("Shutdown finished") | ||
} | ||
) | ||
.use { | ||
println("Application running with acquired resources.") | ||
awaitCancellation() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters