Created
November 7, 2018 18:57
-
-
Save mayojava/6e75911422e42e59dbf9a52d3023688c to your computer and use it in GitHub Desktop.
actor coroutine builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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