UNPKG

nanolith

Version:

Multi-threading in no time with seamless TypeScript support.

1 lines 216 B
import{workerData}from"worker_threads";import{Messenger}from"../messenger/index.js";export const applyMessengerTransferObjects=e=>{workerData.messengers=e.reduce(((e,r)=>(e[r.__messengerID]=new Messenger(r),e)),{})};