Finalizer<T> constructor

Finalizer<T>(
  1. void callback(
    1. T
    )
)

Creates a finalizer with the given finalization callback.

The callback is bound to the current zone when the Finalizer is created, and will run in that zone when called.

Implementation

external factory Finalizer(void Function(T) callback);