Search
@dandre3000/is-main-thread
Check if javascript code is running in the main thread or in a worker thread. This module is compatible with web browsers, bun, deno and node.js. # Usage ```js import { isMainThread } from '@dandre3000/is-main-thread'
v1.0.0 URL:
https://unpkg.com/@dandre3000/is-main-thread@1.0.0/dist/web.index.js
Open
Browse Files
isMainThread
threads
Worker
worker_threads