Done

data class Done<out Output>(val output: Output) : Schedule.Decision<Any?, Output> (source)

Constructors

Link copied to clipboard
constructor(output: Output)

Properties

Link copied to clipboard
open override val output: Output

Functions

Link copied to clipboard
open suspend fun <B, C> and(other: Schedule.Decision<Any?, B>, transform: suspend (output: Output, b: B) -> C, combineDuration: suspend (left: Duration, right: Duration) -> Duration): Schedule.Decision<Any?, C>
Link copied to clipboard
open suspend fun andThen(other: suspend (Any?) -> Schedule.Decision<Any?, Output>): Schedule.Decision<Any?, Output>
open suspend fun <A, B> andThen(other: suspend (Any?) -> Schedule.Decision<Any?, A>, ifLeft: suspend (Output) -> B, ifRight: suspend (A) -> B): Schedule.Decision<Any?, B>
Link copied to clipboard
open suspend fun <A> contramap(f: suspend (A) -> Any?): Schedule.Decision<A, Output>
Link copied to clipboard
open suspend fun delayed(transform: suspend (Output, Duration) -> Duration): Schedule.Decision<Any?, Output>
Link copied to clipboard
open suspend fun <A> map(f: suspend (output: Output) -> A): Schedule.Decision<Any?, A>
Link copied to clipboard
open suspend fun <B, C> or(other: Schedule.Decision<Any?, B>, transform: suspend (output: Output?, b: B?) -> C, combineDuration: suspend (left: Duration?, right: Duration?) -> Duration): Schedule.Decision<Any?, C>
Link copied to clipboard
open suspend fun recursiveMap(transform: suspend (Schedule.Decision<Any?, Output>) -> Schedule.Decision<Any?, Output>): Schedule.Decision<Any?, Output>