msgpackr icon indicating copy to clipboard operation
msgpackr copied to clipboard

is it thread safe when use threads_worker

Open introspection3 opened this issue 2 years ago • 3 comments

is it thread safe when use threads_worker

introspection3 avatar Nov 06 '23 08:11 introspection3

Yes, it is safe to use with worker_threads.

kriszyp avatar Nov 06 '23 11:11 kriszyp

Yes, it is safe to use with worker_threads.

can we use it async??

introspection3 avatar Nov 07 '23 13:11 introspection3

You can use msgpackr with asynchronous code. The msgpackr functions themselves do not have asynchronous APIs, they immediately execute, and there is no meaningful off-thread work that they can do asynchronously.

kriszyp avatar Nov 07 '23 13:11 kriszyp