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.
13 lines
500 B
13 lines
500 B
import { Task } from '../types';
|
|
/**
|
|
* Calls a task as soon as possible after returning, in its own event, with
|
|
* priority over IO events. An exception thrown in a task can be handled by
|
|
* `process.on("uncaughtException") or `domain.on("error")`, but will otherwise
|
|
* crash the process. If the error is handled, all subsequent tasks will
|
|
* resume.
|
|
*
|
|
* @param {{call}} task A callable object, typically a function that takes no
|
|
* arguments.
|
|
*/
|
|
export declare function asap(task: Task): void;
|