MyRepo-Ums/node_modules/piscina/test/fixtures/console-log.ts
2024-01-19 11:09:11 +01:00

10 lines
206 B
TypeScript

import Piscina from '../..';
import { resolve } from 'path';
const pool = new Piscina({
filename: resolve(__dirname, 'eval.js'),
maxThreads: 1
});
pool.runTask('console.log("A"); console.log("B");');