Skip to content

Instantly share code, notes, and snippets.

@dmytrodanylyk
Last active October 10, 2017 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmytrodanylyk/129093bdc13edc43cd752bf297fab18e to your computer and use it in GitHub Desktop.
Save dmytrodanylyk/129093bdc13edc43cd752bf297fab18e to your computer and use it in GitHub Desktop.
// dispatches execution onto the Android main UI thread
private val uiContext: CoroutineContext = UI
// represents a common pool of shared threads as the coroutine dispatcher
private val bgContext: CoroutineContext = CommonPool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment