So far this module offers a super easy way to block from a worker but it doesn't offer a way to expose a function in the worker and resolve it on the main thread.
This MR allows that with the only caveat that the main thread needs to await the worker, otherwise it'd be blocked.
So far this module offers a super easy way to block from a worker but it doesn't offer a way to expose a function in the worker and resolve it on the main thread.
This MR allows that with the only caveat that the main thread needs to
await
the worker, otherwise it'd be blocked.