MCPcopy Create free account
hub / github.com/nodejs/node / [kDeserialize]

Method [kDeserialize]

lib/internal/abort_controller.js:451–466  ·  view source on GitHub ↗
({ aborted, reason, port })

Source from the content-addressed store, hash-verified

449 }
450
451 [kDeserialize]({ aborted, reason, port }) {
452 if (aborted) {
453 this[kAborted] = aborted;
454 this[kReason] = reason;
455 return;
456 }
457
458 port.onmessage = ({ data }) => {
459 abortSignal(this, data);
460 port.close();
461 port.onmessage = undefined;
462 };
463 // The receiving port, by itself, should never keep the event loop open.
464 // The unref() has to be called *after* setting the onmessage handler.
465 port.unref();
466 }
467}
468
469converters.AbortSignal = createInterfaceConverter('AbortSignal', AbortSignal.prototype);

Callers

nothing calls this directly

Calls 3

abortSignalFunction · 0.85
closeMethod · 0.65
unrefMethod · 0.45

Tested by

no test coverage detected