PodFinalizerWrapper<T extends Object> constructor

PodFinalizerWrapper<T extends Object>(
  1. PodNotifier<T> pod
)

Implementation

PodFinalizerWrapper(PodNotifier<T> pod) : pod = WeakReference(pod) {
  // `detach: this` lets [detach] cancel the registration cleanly.
  _finalizer.attach(this, pod, detach: this);
}