| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- postMessage(data, transfer) on Worker and in workers: the value is cloned and the list taken
when postMessage is called. ArrayBuffers are copied, then detached; other objects need a type
registered in each isolate with __nsRegisterTransferable(name, { test, detach, attach,
release }), which turns them into a token and back (@nativescript/canvas's OffscreenCanvas).
- Node-API threadsafe-function calls and async-work completions run on the thread whose env made
them; a worker's ran on the UI thread.
- A terminating worker runs its addons' cleanup hooks and frees their envs; external ArrayBuffers
still alive are finalized during env teardown, as Node does. An external ArrayBuffer without a
finalizer had a null deleter, which crashed when a worker's isolate was disposed.
- requestAnimationFrame in workers, following the UI thread's frames.
- new Worker('~/chunk.js') (NativeScript's webpack worker loader) resolves against the app
directory.
- Worker.postMessage no longer waits up to 500 ms for a reply under a XAML host.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command. ⚙️ Run configuration
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file. Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ❤️ ShareComment @coderabbitai help to get the list of available commands. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Lets a worker take objects through postMessage(data, transfer), so @nativescript/canvas can send an OffscreenCanvas to a worker (NativeScript/canvas#179), and fixes what kept native addons from working in workers.
Transfer lists
Native addons in workers
Workers
Tests