Skip to content

Commit

Permalink
Generic type argument to make Dart 1.24.3 analyzer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Jan 30, 2018
1 parent e360490 commit 91b299c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/misc/lib/tutorial/daily_news.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Duration oneSecond = const Duration(seconds: 1);
String _gatherNewsReportsSync() => news;

// #docregion main-async, main-future-api
final newsStream = new Stream.periodic(oneSecond, (_) => news);
final newsStream = new Stream<String>.periodic(oneSecond, (_) => news);

// Imagine that this function is more complex and slow. :)
Future _gatherNewsReportsAsync() => newsStream.first;
Expand Down

0 comments on commit 91b299c

Please sign in to comment.