UNPKG

340 BJavaScriptView Raw
1const { join } = require(`path`)
2const { fork } = require(`child_process`)
3
4module.exports = async () => {
5 // Submit events on background w/o blocking the main process
6 // nor relying on it's lifecycle
7 const forked = fork(join(__dirname, `send.js`), {
8 detached: true,
9 stdio: `ignore`,
10 execArgv: [],
11 })
12 forked.unref()
13}