Files
memecoin-botV2/.pnpm-store/v10/files/a8/102390888408b26843afbdb3cc146a8165406032d7d8311570778d483353f08c0114c64f0b9e7ecf450d8a8aa563a4b9b42ec58f6b596edbcf36404d3037da

23 lines
418 B
Plaintext

'use strict'
const { Writable } = require('stream')
const parentPort = require('worker_threads').parentPort
async function run (opts) {
return new Writable({
autoDestroy: true,
write (chunk, enc, cb) {
if (parentPort) {
parentPort.postMessage({
code: 'EVENT',
name: 'context',
args: opts.$context
})
}
cb()
}
})
}
module.exports = run