workers/host/inFlightRegistry
@arolariu/website / workers/host/inFlightRegistry
workers/host/inFlightRegistry
Fileoverview
In-flight call registry for the Web Worker host.
Remarks
The host registers every proxy method call here BEFORE awaiting ensureReady.
This is load-bearing: Comlink's requestResponseMessage tracks only the
call's resolve callback (no reject), so if the worker terminates while
a call is mid-flight the consumer's await would hang forever
(GoogleChromeLabs/comlink#601). Crash, restart, and dispose all drain the
registry through this module so each call sees a deterministic rejection.
Type Aliases
Functions
// was this page useful?