mirror of
https://github.com/github/codeql-action.git
synced 2026-01-06 22:50:17 +08:00
14 lines
303 B
JavaScript
14 lines
303 B
JavaScript
import process from 'node:process';
|
|
|
|
import state from './state.cjs';
|
|
|
|
export function runCompletionHandlers() {
|
|
for (const handler of state.completionHandlers) {
|
|
process.nextTick(() => handler());
|
|
}
|
|
}
|
|
|
|
export function registerCompletionHandler(handler) {
|
|
state.completionHandlers.push(handler);
|
|
}
|