Update _EventStreamSubscription.cancel() to have the same timing with and without sound null safety #44157
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
NNBD
Issues related to NNBD Release
P2
A bug or feature request we're likely to work on
web-libraries
Issues impacting dart:html, etc., libraries
In #41653 we decided to hide a breaking timing change behind opting into sound null safety. This has proven problematic for multiple reasons.
EventTarget.dispatchEvent()
which should have synchronous timings for the event listeners before returning to the calling code. The asynchronous timing when running with sound null safety might actually not be correct for this use case.null
(to signal the synchronous timing) in weak mode when the method is statically typed to return a non-nullableFuture
gives unwanted warnings/errors from the features DDC offers to assist in large scale migrations.The text was updated successfully, but these errors were encountered: