You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the browser supports the [WeakRef proposal], `releaseProxy()` will be called automatically when the proxy created by `wrap()` gets garbage collected.
170
+
171
+
### `Comlink.finalizer`
172
+
173
+
If the object passed to `Comlink.expose()` has a function property `[Comlink.finalizer]`, this function will be called when `releaseProxy()` was called on the other end. Do not that the channel is considered closed at this point and no more communication can happen. This callback is for cleanup only.
174
+
169
175
### `Comlink.createEndpoint`
170
176
171
177
Every proxy created by Comlink has the `[createEndpoint]` method.
@@ -206,6 +212,7 @@ Comlink works with Node’s [`worker_threads`][worker_threads] module. Take a lo
0 commit comments