Share via


IJobInfo.setPromise method

Uses a Promise to determine how long the scheduler should wait before rescheduling the job after it yields.

Syntax

iJobInfo.setPromise(promise);

Parameters

  • promise
    Type: WinJS.Promise**

    Once the work item yields, the scheduler will wait for this Promise to complete before rescheduling the job.

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 2.0

Namespace

WinJS.Utilities.Scheduler

See also

IJobInfo