Lines Matching refs:MessagePort
159 * `port` {MessagePort} The message port which will be transferred.
163 * Returns: {MessagePort}
165 Transfer a `MessagePort` to a different [`vm`][] Context. The original `port`
166 object will be rendered unusable, and the returned `MessagePort` instance will
169 The returned `MessagePort` will be an object in the target context, and will
174 However, the created `MessagePort` will no longer inherit from
183 * {null|MessagePort}
185 If this thread was spawned as a [`Worker`][], this will be a [`MessagePort`][]
214 * `port` {MessagePort}
218 Receive a single message from a given `MessagePort`. If no message is available,
221 `MessagePort`’s queue.
333 [`MessagePort`][] instances.
344 ## Class: `MessagePort`
357 Instances of the `worker.MessagePort` class represent one end of an
359 structured data, memory regions and other `MessagePort`s between different
362 This implementation matches [browser `MessagePort`][]s.
421 `MessagePort`.
423 The [`'close'` event][] will be emitted on both `MessagePort` instances that
463 * {MessagePort}s,
479 `transferList` may be a list of [`ArrayBuffer`][], [`MessagePort`][] and
593 Starts receiving messages on this `MessagePort`. When using this port
597 This method exists for parity with the Web `MessagePort` API. In Node.js,
654 built-in pair of [`MessagePort`][]s that are already associated with each other
655 when the `Worker` is created. While the `MessagePort` object on the parent side
663 `MessagePort`s on that `MessageChannel` to the other thread through a
673 Worker, MessageChannel, MessagePort, isMainThread, parentPort
684 assert(value.hereIsYourPort instanceof MessagePort);
769 * `transferList` {Object[]} If one or more `MessagePort`-like objects
1033 `Worker`s utilize message passing via {MessagePort} to implement interactions
1095 [`MessagePort`]: #worker_threads_class_messageport
1109 [`port.onmessage()`]: https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage
1135 [browser `MessagePort`]: https://developer.mozilla.org/en-US/docs/Web/API/MessagePort