3 ms·
Promises still run in the main thread. You could try to use a web worker, but then you run into the problem that they don't have shared memory, so you need to
by earthboundkid 7y ago
Promises still run in the main thread.
You could try to use a web worker, but then you run into the problem that they don't have shared memory, so you need to pass data back some other way.
- earthboundkid 7y agoIndexedDB runs on web workers, so that might be a good way to push the work off the main thread but still share the result.