How to avoid a race condition with _streamSubscription?.cancel();?
I have a function foo
that returns a Stream
I have a function onClick
that cancels the previous StreamSubscription, calls foo
, and adds a new listener
I have a function foo
that returns a Stream
I have a function onClick
that cancels the previous StreamSubscription, calls foo
, and adds a new listener