Skip to content

Instantly share code, notes, and snippets.

@mayojava
Created November 7, 2018 18:57
Show Gist options
  • Save mayojava/6e75911422e42e59dbf9a52d3023688c to your computer and use it in GitHub Desktop.
Save mayojava/6e75911422e42e59dbf9a52d3023688c to your computer and use it in GitHub Desktop.
actor coroutine builder
public fun <E> CoroutineScope.actor(
context: CoroutineContext = EmptyCoroutineContext,
capacity: Int = 0,
start: CoroutineStart = CoroutineStart.DEFAULT,
onCompletion: CompletionHandler? = null,
block: suspend ActorScope<E>.() -> Unit
): SendChannel<E>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment