UNPKG

363 BJavaScriptView Raw
1"use strict";
2
3const {
4 join
5} = require(`path`);
6
7const {
8 fork
9} = require(`child_process`);
10
11module.exports = async () => {
12 // Submit events on background w/o blocking the main process
13 // nor relying on it's lifecycle
14 const forked = fork(join(__dirname, `send.js`), {
15 detached: true,
16 stdio: `ignore`,
17 execArgv: []
18 });
19 forked.unref();
20};
\No newline at end of file