This item only defines dependencies and configuration. Check the Configuration panel on the right for more details.
Configuration
Name
use-worker
Type
Hook
Description
Run a pure function off the main thread: the function is stringified into a Blob worker, every call is a promise matched back by id so out-of-order completions land on the right caller, transferables move in both directions, task errors reject without replacing the worker, and everything is terminated on unmount.
Files
1
Registry Items
This item has no files to display
This item only defines dependencies and configuration. Check the Configuration panel on the right for more details.
Configuration
Name
use-worker
Type
Hook
Description
Run a pure function off the main thread: the function is stringified into a Blob worker, every call is a promise matched back by id so out-of-order completions land on the right caller, transferables move in both directions, task errors reject without replacing the worker, and everything is terminated on unmount.