Last active
April 5, 2019 22:18
-
-
Save f3ath/cf121e4c79eeffb81f4ded03d1892015 to your computer and use it in GitHub Desktop.
This file contains hidden or 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:convert'; | |
import 'dart:io'; | |
import 'package:rxdart/rxdart.dart'; | |
void main() => stdin | |
.transform(utf8.decoder) | |
.transform(LineSplitter()) | |
.transform(IntervalStreamTransformer(Duration(seconds: 1))) | |
.listen((_) => print("> $_")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment