-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix compilation warnings by replacing usages of deprecated methods (#…
…2742) * Fix compilation warnings by replacing usages of deprecated methods * Update Kotlin doc and then generate the example code via Knit tool Co-authored-by: wojda <[email protected]> Co-authored-by: Imran Malic Settuba <[email protected]>
- Loading branch information
1 parent
39b6446
commit f26930f
Showing
3 changed files
with
39 additions
and
35 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
6 changes: 3 additions & 3 deletions
6
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-schedule-02.kt
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// This file was automatically generated from Schedule.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleSchedule02 | ||
|
||
import kotlin.time.seconds | ||
import kotlin.time.milliseconds | ||
import kotlin.time.Duration.Companion.milliseconds | ||
import kotlin.time.Duration.Companion.seconds | ||
import kotlin.time.ExperimentalTime | ||
import arrow.fx.coroutines.* | ||
|
||
@ExperimentalTime | ||
fun <A> complexPolicy(): Schedule<A, List<A>> = | ||
Schedule.exponential<A>(10.milliseconds).whileOutput { it.inNanoseconds < 60.seconds.inNanoseconds } | ||
Schedule.exponential<A>(10.milliseconds).whileOutput { it < 60.seconds } | ||
.andThen(Schedule.spaced<A>(60.seconds) and Schedule.recurs(100)).jittered() | ||
.zipRight(Schedule.identity<A>().collect()) |