Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
256 B

2 years ago
'use strict';
var threadId;
try {
var Worker = require('worker_threads');
if (Worker.isMainThread) {
threadId = -1;
} else {
threadId = Worker.threadId;
}
} catch (e) {
// no worker support
threadId = -1;
}
module.exports = threadId;