mirror of
https://github.com/github/codeql-action
synced 2026-06-16 05:08:43 +03:00
7 lines
223 B
JavaScript
7 lines
223 B
JavaScript
'use strict';
|
|
const process = require('process');
|
|
const {isMainThread} = require('worker_threads');
|
|
|
|
exports.isRunningInThread = isMainThread === false;
|
|
exports.isRunningInChildProcess = typeof process.send === 'function';
|