Skip to content

Instantly share code, notes, and snippets.

@JesterXL
Created July 23, 2014 16:44
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 JesterXL/b3dd5dc4978f33535b46 to your computer and use it in GitHub Desktop.
Save JesterXL/b3dd5dc4978f33535b46 to your computer and use it in GitHub Desktop.
Broadcast Stream - works
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