Skip to content
Ron Buckton edited this page Jan 15, 2015 · 1 revision

Exports various scheduling functions.

Syntax

declare module "task" {
  export type Handle = {};
  export function scheduleTask(task: () => void): Handle;
  export function cancelTask(handle: Handle): void;
}

Exports

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.

Imports

  • None

Imported By

Requirements

  • Supported Platforms: Browser, nodejs
  • Module: task
  • Library: task.ts
Clone this wiki locally