-
Notifications
You must be signed in to change notification settings - Fork 0
task module
Ron Buckton edited this page Jan 15, 2015
·
1 revision
Exports various scheduling functions.
declare module "task" {
export type Handle = {};
export function scheduleTask(task: () => void): Handle;
export function cancelTask(handle: Handle): void;
}
- type Handle
- A task handle, used for cancelling the task.
- function scheduleTask(Function)
- Schedules a task for later execution/
- function cancelTask(Handle)
- Canceles a scheduled task.
- None
- Supported Platforms: Browser, nodejs
- Module: task
- Library: task.ts