//arrow-fx-coroutines/arrow.fx.coroutines/Schedule/Decision

Decision

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

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

Constructors

   
Decision common fun <out A, out B> Decision(cont: Boolean, delayInNanos: Double, state: A, finish: Eval<B>)

Types

Name Summary
Companion common object Companion

Functions

Name Summary
bimap common fun <C, D> bimap(f: (A) -> C, g: (B) -> D): Schedule.Decision<C, D>
combine common
@ExperimentalTime
fun <C, D, E> combine(other: Schedule.Decision<C, D>, f: (Boolean, Boolean) -> Boolean, g: (Duration, Duration) -> Duration, zip: (B, D) -> E): Schedule.Decision<Pair<A, C>, E>
combineNanos common 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>
equals common open operator override fun equals(other: Any?): Boolean
map common fun <D> map(g: (B) -> D): Schedule.Decision<A, D>
mapLeft common fun <C> mapLeft(f: (A) -> C): Schedule.Decision<C, B>
not common operator fun not(): Schedule.Decision<A, B>

Properties

Name Summary
cont common val cont: Boolean
delayInNanos common val delayInNanos: Double
duration common @ExperimentalTime
val duration: Duration
finish common val finish: Eval<B>
state common val state: A

Do you like Arrow?

Arrow Org
<