workers/host/createPortPair
@arolariu/website / workers/host/createPortPair
workers/host/createPortPair
Fileoverview
Tiny helper that wraps MessageChannel creation with named ports.
Remarks
Two-port channels are the building block of the worker bootstrap handshake.
Naming the halves explicitly (parent vs transferable) makes call sites
read top-down and makes it syntactically obvious which port the host must
close() on teardown (the parent half) and which one detaches
automatically after being transferred (the transferable half).
Type Aliases
Functions
// was this page useful?