arrow-fx / arrow.fx / MVar / uncancellableEmpty
fun <F, A> uncancellableEmpty(AS:
Async
<F>): Kind<F,
MVar
<F, A>>
Create an uncancellable empty MVar.
import arrow.fx.*
import arrow.fx.extensions.io.async.async
fun main(args: Array<String>) {
//sampleStart
val mvar: IOOf<MVar<ForIO, Int>> = MVar.uncancellableEmpty(IO.async())
//sampleEnd
}
Do you like Arrow?
✖