generated from tpl/purs
9 lines
353 B
JavaScript
9 lines
353 B
JavaScript
import * as worker from 'node:worker_threads'
|
|
|
|
/** @type {(k: worker.Serializable) => () => unknown} */
|
|
export const getEnvironmentDataImpl = k => () => worker.getEnvironmentData(k)
|
|
|
|
/** @type {(k: worker.Serializable) => (v: worker.Serializable) => () => void} */
|
|
export const setEnvironmentDataImpl = k => v => () =>
|
|
worker.setEnvironmentData(k, v)
|