Last active
August 20, 2019 09:37
-
-
Save rullyalves/0fb801e408901ea00f86f684534ed547 to your computer and use it in GitHub Desktop.
RXDart asyncMap operator
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
| void main() async { | |
| final behavior = new BehaviorSubject<String>(); | |
| Observable newStream = behavior | |
| .asyncMap((value) => /* alguma computacao assíncrona....*/); | |
| // ouve o novo Observable criado | |
| newStream.listen(print); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment