Skip to content

Instantly share code, notes, and snippets.

View f3ath's full-sized avatar
🐴
If I had ever learnt, I should have been a great proficient.

Alexey f3ath

🐴
If I had ever learnt, I should have been a great proficient.
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);
});