index.js
function initAsyncResource(asyncId, type, triggerAsyncId, resource) {
	if (wakingup) {
		return;
	}
	wakingup = true;
	setImmediate(() => {
		EventLoop.wakeupBackgroundThread();
		wakingup = false;
	});
}
function initAsyncResource(asyncId, type, triggerAsyncId, resource) {
	if (wakingup) {
		return;
	}
	wakingup = true;
	setImmediate(() => {
		EventLoop.wakeupBackgroundThread();
		wakingup = false;
	});
}
function initAsyncResource ( asyncId , type , triggerAsyncId , resource ) { if ( wakingup ) { return ; } wakingup = true ; setImmediate ( ( ) => { EventLoop . wakeupBackgroundThread ( ) ; wakingup = false ; } ) ; }
This is called when a new async handle is created. It's used to signal the background thread to stop awaiting calls and upgrade it's list of handles it's awaiting for.
This is called when a new async handle is created . It s used to signal the background thread to stop awaiting calls and upgrade it s list of handles it s awaiting for .