Cannot read property 'then$1' of undefined when cancelling periodic stream subscription #26777
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-async
When attempting to cancel a subscription to a periodic stream, doing something like this:
An error is thrown:
A quick trip to the function comments shows:
Why return a null in the case of no cleanup being necessary? It's a bit unexpected to have to check if we're getting a null back instead of a Future. I expected that in the case of no cleanup, we would simply get a Future that immediately resolves.
The text was updated successfully, but these errors were encountered: