setPromise method
Collapse the table of content
Expand the table of content

IJobInfo.setPromise method

Applies to Windows and Windows Phone

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

 

 

Show:
© 2017 Microsoft