ScopedRaise

class ScopedRaise<Error>(raise: EffectScope<Error>, scope: CoroutineScope) : CoroutineScope, EffectScope<Error>

Temporary intersection type, until we have context receivers

Constructors

Link copied to clipboard
fun <Error> ScopedRaise(raise: EffectScope<Error>, scope: CoroutineScope)

Functions

Link copied to clipboard
open suspend override fun <E, A> attempt(f: suspend EffectScope<E>.() -> A): suspend EffectScope<E>.() -> A
Link copied to clipboard
open suspend override fun <B> Either<Error, B>.bind(): B
open suspend override fun <B> Validated<Error, B>.bind(): B
open suspend override fun <B> EagerEffect<Error, B>.bind(): B
open suspend override fun <B> Effect<Error, B>.bind(): B
open suspend override fun <B> EagerEffect<Error, B>.bind(): B
open suspend override fun <B> suspend Raise<Error>.() -> B.bind(): B
open suspend override fun <B> Option<B>.bind(shift: () -> Error): B
open suspend override fun <B> Result<B>.bind(transform: (Throwable) -> Error): B
Link copied to clipboard
open infix suspend override fun <E, A> suspend EffectScope<E>.() -> A.catch(recover: suspend EffectScope<Error>.(E) -> A): A
Link copied to clipboard
open suspend override fun ensure(condition: Boolean, shift: () -> Error)
Link copied to clipboard
open infix suspend override fun <E, A> suspend EffectScope<E>.() -> A.recover(recover: suspend EffectScope<Error>.(E) -> A): A
Link copied to clipboard
open suspend override fun <B> shift(r: Error): B

Properties

Link copied to clipboard