Skip to content

Instantly share code, notes, and snippets.

@jaozinfs
Last active September 22, 2020 14:39
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 jaozinfs/cffe63e17af403eb5f29b8d69dc1f9c1 to your computer and use it in GitHub Desktop.
Save jaozinfs/cffe63e17af403eb5f29b8d69dc1f9c1 to your computer and use it in GitHub Desktop.
Inicia o flow e mapeia números pares
GlobalScope.launch {
increase(DEFAULT_DELAY).map {
it / 2 % 0
}.collect {
print("Current value: $it")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment