dart-sdk/sdk/lib
Lasse R.H. Nielsen bdbd3c0602 Make unawaited accept a nullable argument.
The associated `unawaited_futures` lint triggers for expressions
of type `Future?` as well, so we should allow the workaround to
handle such expressions.

This change makes a static function more permissive, and is not expected
to be breaking in any way.
(It does mean that you need Dart 2.15.0 to use the function with
nullable arguments. I've changed the annotation to say `@Since("2.15")`.
That means anyone using a 2.15 SDK should assume that they need a 2.15
SDK to use it, and someone using a 2.14 SDK will not see the argument
as nullable. If anyone uses `@Since` annotations for anything at all.)

Change-Id: Ib2da4b353104cc88a834208a6ebd788ae55b4544
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214406
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
Reviewed-by: Nate Bosch <nbosch@google.com>
2021-09-27 11:58:16 +00:00
..
_http [io/http] Add a HTTP Client parameter on WebSocket.connect to allow a custom HTTP Client for web socket connections. 2021-09-15 18:06:42 +00:00
_internal Add fixes for Remaining renames 2021-09-21 16:07:30 +00:00
async Make unawaited accept a nullable argument. 2021-09-27 11:58:16 +00:00
cli Deprecate the dart:cli library and waitFor method. 2021-08-16 13:49:48 +00:00
collection Tweaks, refactoring and updates on DoubleLinkedQueue. 2021-08-31 12:44:39 +00:00
convert fix todos linked to issue #38725 2021-05-17 20:51:52 +00:00
core Add null-unsoundness check to print's object.toString() result. 2021-09-23 15:36:23 +00:00
developer [ Timeline ] Don't try to log async timeline events when Dart stream is 2021-09-17 18:49:21 +00:00
ffi [vm] Adds args_n to FFI resolver. 2021-09-13 07:57:00 +00:00
html [vm/ffi] Privatizes dart:nativewrappers' getNativeField(..) 2021-09-24 13:13:55 +00:00
indexed_db/dart2js [dart:html] Add doc changes to templates and source files 2021-07-22 19:59:54 +00:00
internal Add null-unsoundness check to print's object.toString() result. 2021-09-23 15:36:23 +00:00
io Add an initial version of a script to validate the code samples in the dart: doc comments. 2021-09-26 03:07:11 +00:00
isolate [vm] Rewrite isolate message serialization. 2021-07-29 16:55:55 +00:00
js various fixes to the dart: lib dartdocs 2020-09-09 16:45:59 +00:00
js_util Optimize js_util callConstructor for 0-4 arguments. 2021-09-13 22:43:10 +00:00
math Fix behavior for -infinity width/height of rectangles. 2021-06-21 13:29:39 +00:00
mirrors Update SDK documentation for new lookup code. 2021-06-28 17:33:30 +00:00
svg/dart2js [dart:html] Unify shared attribute metadata from MDN 2020-08-25 23:48:43 +00:00
typed_data fix todos linked to issue #38725 2021-05-17 20:51:52 +00:00
vmservice [VM] [CFE]: Expression compilation inside extension method 2021-09-10 12:02:57 +00:00
web_audio/dart2js Update SDK documentation for new lookup code. 2021-06-28 17:33:30 +00:00
web_gl/dart2js [dart:html] Revert "[dart:html] Revert commits using MDN compatibility info" 2020-07-14 23:18:43 +00:00
web_sql/dart2js [web] deprecate dart:web_sql 2021-04-23 19:04:42 +00:00
libraries.json [vm] Implement constant Maps in the VM 2021-09-06 06:28:59 +00:00
libraries.yaml [vm] Implement constant Maps in the VM 2021-09-06 06:28:59 +00:00
vmservice_libraries.json [Core Libraries] Eliminate the fork in the core libraries. 2020-06-16 23:37:36 +00:00
vmservice_libraries.yaml update the tooling to generate libraries.json from libraries.yaml 2021-07-27 23:02:50 +00:00