mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
7 lines
233 B
JavaScript
7 lines
233 B
JavaScript
'use strict';
|
|
const process = require('node:process');
|
|
const {isMainThread} = require('node:worker_threads');
|
|
|
|
exports.isRunningInThread = isMainThread === false;
|
|
exports.isRunningInChildProcess = typeof process.send === 'function';
|