You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
298 B

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");');