Created
May 20, 2021 14:56
-
-
Save shubham0204/bc2a19f01c3a139ee6b1aac12400c0e8 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
private suspend fun runOnCoroutine( some_data : Data ) = | |
withContext( Dispatchers.Default ) { | |
results = my_lazy_function(data) | |
return@withContext results | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment