Files
node/lib
James M Snell 438b9cfe02 lib: make AbortSignal cloneable/transferable
Allows for using `AbortSignal` across worker threads and contexts.

```js
const ac = new AbortController();
const mc = new MessageChannel();
mc.port1.onmessage = ({ data }) => {
  data.addEventListener('abort', () => {
    console.log('aborted!');
  });
};
mc.port2.postMessage(ac.signal, [ac.signal]);
```

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/41050
Refs: https://github.com/whatwg/dom/issues/948
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
2022-01-31 23:08:59 -05:00
..
…
…
2020-10-21 01:26:34 +02:00
2021-09-22 00:27:07 +01:00
2022-01-31 23:08:54 -05:00
…
2021-06-02 13:22:16 -04:00
2022-01-31 22:53:28 -05:00
2021-07-29 11:56:47 +01:00
…
2021-07-11 09:43:52 +02:00