Created
July 23, 2014 16:44
-
-
Save JesterXL/b3dd5dc4978f33535b46 to your computer and use it in GitHub Desktop.
Broadcast Stream - works
This file contains 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
List myList = new List(); | |
Stream myStream = new Stream.fromIterable(myList); | |
StreamController controller = new StreamController.broadcast(); | |
controller.addStream(myStream) | |
.then((_) | |
{ | |
print("ready"); | |
myList.add("sup"); | |
}) | |
.catchError((error) | |
{ | |
print("some error"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment