EN
本內容沒有您的語言版本,但有英文版本。

WinJS.Utilities.Scheduler.schedulePromiseAboveNormal function

Applies to Windows and Windows Phone

Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.aboveNormal 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.schedulePromiseAboveNormal(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 aboveNormal priority.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities.Scheduler

Library

Base.js

 

 

顯示:
© 2014 Microsoft