Decision

data class Decision<out A, out B>(val cont: Boolean, val delayInNanos: Double, val state: A, val finish: Eval<B>)(source)

A single decision. Contains the decision to continue, the delay, the new state and the (lazy) result of a Schedule.

Constructors

Link copied to clipboard
fun <out A, out B> Decision(cont: Boolean, delayInNanos: Double, state: A, finish: Eval<B>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun <C, D> bimap(f: (A) -> C, g: (B) -> D): Schedule.Decision<C, D>
Link copied to clipboard
Link copied to clipboard
fun <C, D, E> combineNanos(other: Schedule.Decision<C, D>, f: (Boolean, Boolean) -> Boolean, g: (Double, Double) -> Double, zip: (B, D) -> E): Schedule.Decision<Pair<A, C>, E>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun <D> map(g: (B) -> D): Schedule.Decision<A, D>
Link copied to clipboard
fun <C> mapLeft(f: (A) -> C): Schedule.Decision<C, B>
Link copied to clipboard
operator fun not(): Schedule.Decision<A, B>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val finish: Eval<B>
Link copied to clipboard
val state: A