INNER CODE UNIT · TypeScript

postFunctionInitMessage

andywer/threads.js · src/worker/index.ts:49

function postFunctionInitMessage() {
  const initMessage: WorkerInitMessage = {
    type: WorkerMessageType.init,
    exposed: {
      type: "function"
    }
  }
  Implementation.postMessageToMaster(initMessage)
}

function postModuleInitMessage(methodNames: string[]) {
  const initMessage: WorkerInitMessage = {
    type: WorkerMessageType.init,
    exposed: {
      type: "module",
      methods: methodNames
    }
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…