I am using WenStorm 2018.2.5 (registered), with the Dart plugin.
While editing a simple code, the editor shows me a message:
Cancel instances of dart.async.StreamSubscription
I don't understand what this message means. I don't see what's wrong with the code. And, if I run the code inspection, the result is : "No suspicious code found".
Any idea ?
Note :
const int eventsCount = 5;
const int waitBetweenTwoEvents = 1;
typedef Streamer = Stream<int> Function();
...
Streamer streamCreator = () async* {
for(int i=0; i<eventsCount; i++) {
yield i;
sleep(Duration(seconds: waitBetweenTwoEvents));
}
};
