mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
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:
parent
dd853fb9ee
commit
8ee071f535
|
@ -167,7 +167,7 @@ abstract class WeakReference<T extends Object> {
|
||||||
abstract class Finalizer<T> {
|
abstract class Finalizer<T> {
|
||||||
/// Creates a finalizer with the given finalization callback.
|
/// 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.
|
/// when the [Finalizer] is created, and will run in that zone when called.
|
||||||
external factory Finalizer(void Function(T) callback);
|
external factory Finalizer(void Function(T) callback);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue