Last active
March 7, 2019 16:23
-
-
Save Malinskiy/744f46075d458bffcc693c9381042643 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
abstract class Actor<in T>(parent: Job? = null, | |
val context: CoroutineContext) : SendChannel<T>, CoroutineScope { | |
override suspend fun send(element: T) = delegate.send(element) | |
protected abstract suspend fun receive(msg: T) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment