be6d2e3a00
Outstanding async code now checks and cancels itself if it was created in a previous version of the application from before a hot restart operation. This includes outstanding `Future`s created by calling the `dart:js_util` helper `promiseToFuture`. Issue: https://github.com/flutter/flutter/issues/166004 Change-Id: I342bbd2f8eda6b58d2f0fdaf3c00f55f03561b1a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423961 Reviewed-by: Nate Biggs <natebiggs@google.com> Reviewed-by: Srujan Gaddam <srujzs@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>