Skip to content

Instantly share code, notes, and snippets.

@jaozinfs
Created September 22, 2020 14:27
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/d95c333d81ec6de3d34f4e805d5bd55a to your computer and use it in GitHub Desktop.
Save jaozinfs/d95c333d81ec6de3d34f4e805d5bd55a to your computer and use it in GitHub Desktop.
Inicia um flow e printa os resultados coletados
GlobalScope.launch {
increase(DEFAULT_DELAY).collect { currentValue->
print("Current value: $currentValue")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment