11cb0ef41Sopenharmony_ciimport { Worker, isMainThread } from 'worker_threads'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciif (isMainThread) { 41cb0ef41Sopenharmony_ci new Worker(new URL(import.meta.url)); 51cb0ef41Sopenharmony_ci await new Promise(() => {}); 61cb0ef41Sopenharmony_ci} else { 71cb0ef41Sopenharmony_ci process.exit(); 81cb0ef41Sopenharmony_ci} 9