Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WinJS.Utilities.Scheduler.schedulePromiseIdle function

Applies to Windows and Windows Phone

Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.Idle priority. This function is to be used as a onCompleted handler in Promise chains to set the priority of the next link in the chain.

Syntax


var p = WinJS.Utilities.Scheduler.schedulePromiseIdle(promiseValue, jobName);

Parameters

promiseValue [optional]

Type: Object

The value returned by the completed Promise.

jobName [optional]

Type: String

A string that describes the job for diagnostic purposes.

Return value

Type: WinJS.Promise

A Promise that completes within a job of idle priority.

Requirements

Minimum WinJS version

WinJS 2.0

Namespace

WinJS.Utilities.Scheduler

 

 

Show:
© 2016 Microsoft