Skip to content

Commit d5fd499

Browse files
authored
Update proposal.md
1 parent 15c3de3 commit d5fd499

File tree

1 file changed

+2
-2
lines changed
  • accepted/future-releases/1847 - FinalizationRegistry

1 file changed

+2
-2
lines changed

accepted/future-releases/1847 - FinalizationRegistry/proposal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ typedef NativeFinalizerPtr = Pointer<NativeFunction<NativeFinalizer>>
268268
/// attached finalizers are definitely called at least once before the program
269269
/// ends, and the callbacks are called as soon as possible after an object
270270
/// is recognized as inaccessible.
271-
abstract class NativeFinalizer<T> {
271+
abstract class NativeFinalizer {
272272
/// Creates a finalizer with the given finalization callback.
273273
///
274274
/// Note: the [callback] is expected to be a native function which can be
@@ -301,7 +301,7 @@ abstract class NativeFinalizer<T> {
301301
/// [externalSize] is an amount of native (non-Dart) memory owned by the
302302
/// given [value]. This information is used to drive garbage collection
303303
/// scheduling heuristics.
304-
void attach(Finalizable value, T token, {Object? detachKey, int externalSize}});
304+
void attach(Finalizable value, Pointer<Void> token, {Object? detachKey, int externalSize}});
305305
306306
/// Detaches the finalizer from any objects that used [detachKey] when
307307
/// attaching the finalizer to them.

0 commit comments

Comments
 (0)