1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-03 00:08:46 +00:00

[dart:html] Add changelog note for EventStreamSubscription.cancel

Closes https://github.com/dart-lang/sdk/issues/41653

Change-Id: I0e5cac66a3a80c3c753d740bf8bf90f68addaf6d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/146880
Commit-Queue: Srujan Gaddam <srujzs@google.com>
Reviewed-by: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
Srujan Gaddam 2020-05-06 19:30:17 +00:00 committed by commit-bot@chromium.org
parent e6a3125492
commit c5943523cc

View File

@ -23,6 +23,18 @@
null-safe changes in the `Set` interface, it will now return `false`
instead. The same applies for `CssClassSet.toggle`.
* `EventStreamSubscription.cancel` method used to return `null`, but since
`StreamSubscription.cancel` has changed to be non-nullable, this method
returns an empty `Future` instead. Due to an optimization on `null`
`Future`s, this method used to complete synchronously, but now that the
`Future` is empty instead, it completes asynchronously, therefore
potentially invalidating code that relied on the synchronous side-effect.
This change will only affect code using sound null-safety. See issue
[41653][] for more details.
[41653]: https://github.com/dart-lang/sdk/issues/41653
#### `dart:io`
* Class `OSError` now implements `Exception`. This change means `OSError` will