13 lines
298 B
TypeScript
13 lines
298 B
TypeScript
import { resolve } from 'node:path';
|
|
import Piscina from '../..';
|
|
|
|
const pool = new Piscina({
|
|
filename: resolve(__dirname, 'eval.js'),
|
|
maxThreads: 1,
|
|
env: {
|
|
PISCINA_ENABLE_ASYNC_ATOMICS: process.env.PISCINA_ENABLE_ASYNC_ATOMICS
|
|
}
|
|
});
|
|
|
|
pool.run('console.log("A"); console.error("B");');
|