Created
May 20, 2021 19:45
-
-
Save Nillerr/cc2bbe0b1938d2efa58e8683419dd740 to your computer and use it in GitHub Desktop.
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
interface TaskService { | |
val tasks: Flow<List<Task>> | |
fun tasks(onEach: (List<Task>) -> Unit, onCompletion: (Throwable?) -> Unit): Cancellable = | |
tasks.collect(onEach, onCompletion) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment