Fix dartdoc for WeakReference.

Because `dart:core` doesn't import `dart:async`, `Zone.current`
cannot be resolved by dartdoc. This introduced failures in
dartdoc generation in the bots.

This change temporarily removes the reference to make the bots
green again.

Change-Id: Ibef0a07db9a35b92776ffa1eb5a895bd4587e016
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227280
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Sigmund Cherem 2022-01-10 20:48:55 +00:00 committed by Commit Bot
parent dd853fb9ee
commit 8ee071f535

View file

@ -167,7 +167,7 @@ abstract class WeakReference<T extends Object> {
abstract class Finalizer<T> {
/// Creates a finalizer with the given finalization callback.
///
/// The [callback] is bound to the [current zone](Zone.current)
/// The [callback] is bound to the current zone
/// when the [Finalizer] is created, and will run in that zone when called.
external factory Finalizer(void Function(T) callback);