Last active
April 22, 2020 14:52
-
-
Save lesnitsky/9858b3f3ed35493b7a5bcd7b304b4046 to your computer and use it in GitHub Desktop.
llib:dart_utils
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
import 'dart:io'; | |
import 'dart:async'; | |
StreamTransformer<T, T> interrupt<T>() { | |
return StreamTransformer.fromHandlers(handleData: (data, sink) { | |
stdin.readLineSync(); | |
sink.add(data); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment