You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
export function waitForever() {
|
|
// Keep event loop alive via an unref'ed interval plus a pending promise.
|
|
const interval = setInterval(() => {}, 1_000_000);
|
|
interval.unref();
|
|
return new Promise<void>(() => {
|
|
/* never resolve */
|
|
});
|
|
}
|