Slide 13
Slide 13 text
Actors in Kotlin
■ kotlinx.coroutines provides an experimental API to build an Actor
■ Returns a SendChannel
public fun CoroutineScope.actor(
context: CoroutineContext = EmptyCoroutineContext,
capacity: Int = 0,
start: CoroutineStart = CoroutineStart.DEFAULT,
onCompletion: CompletionHandler? = null,
block: suspend ActorScope.() -> Unit
): SendChannel