@dandre3000/is-main-thread
Version:
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'
Filename | Content Type | Size | |
---|---|---|---|
298 B | |||
1.07 kB | |||
307 B | |||
773 B |