kriszyp / msgpackr

Ultra-fast MessagePack implementation with extension for record and structural cloning / msgpack.org[JavaScript/NodeJS]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is it thread safe when use threads_worker

introspection3 opened this issue · comments

is it thread safe when use threads_worker

Yes, it is safe to use with worker_threads.

Yes, it is safe to use with worker_threads.

can we use it async??

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.