Skip to content

Instantly share code, notes, and snippets.

View f3ath's full-sized avatar
🐴
I am most seriously displeased.

Alexey f3ath

🐴
I am most seriously displeased.
View GitHub Profile
main() async {
final broadcaster = StreamController.broadcast();
broadcaster.stream
.asyncExpand((data) =>
Stream.fromFuture(Future.delayed(Duration(seconds: 10), () {
return data;
})))
.listen((onData) {
print(onData);
});