Creates and returns a new IOwnerToken which can be set to the owner property of one or more jobs.
A new IOwnerToken which can be set to the owner property of one or more jobs.
Runs the specified callback in a high priority context.
The callback to run in a high priority callback.
U
The return value of the callback.
Runs jobs in the scheduler without timeslicing until all jobs at the specified priority and higher have executed.
The priority to which the scheduler should drain. The default is -15.
An optional description of the drain request for diagnostics.
A Promise which completes when the drain has finished. Canceling this Promise cancels the drain request. This Promise will never enter an error state.
Returns a string representation of the scheduler's state for diagnostic purposes. The jobs and drain requests are displayed in the order in which they are currently expected to be processed. The current job and drain request are marked by an asterisk.
string
A string representation of the scheduler's state for diagnostic purposes. The jobs and drain requests are displayed in the order in which they are currently expected to be processed. The current job and drain request are marked by an asterisk.
Schedules the specified function to execute asynchronously.
A function that represents the work item to be scheduled. When called the work item will receive as its first argument an object which allows the work item to ask the scheduler if it should yield cooperatively and if so allows the work item to either provide a function to be run as a continuation or a WinJS.Promise which will when complete provide a function to run as a continuation. Provide these fields for the object: shouldYield, setWork(work), setPromise(promise), job.
The priority of the work item. If you don't specify a priority, it defaults to WinJS.Utilities.Scheduler.Priority.normal.
A "this" instance to be bound to the work item. The default value is null.
A description of the work item for diagnostics. The default value is an empty string.
The job instance that represents this work item.
Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.aboveNormal priority.
The value returned by the completed Promise.
A string that describes the job for diagnostic purposes.
A Promise that completes within a job of aboveNormal priority.
Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.belowNormal priority.
The value returned by the completed Promise.
A string that describes the job for diagnostic purposes.
A Promise that completes within a job of belowNormal priority.
Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.high priority.
The value returned by the completed Promise.
A string that describes the job for diagnostic purposes.
A Promise that completes within a job of high priority.
Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.Idle priority.
The value returned by the completed Promise.
A string that describes the job for diagnostic purposes.
A Promise that completes within a job of idle priority.
Schedules a job to complete the returned Promise at WinJS.Utilities.Scheduler.Priority.normal priority.
The value returned by the completed Promise.
A string that describes the job for diagnostic purposes.
A Promise that completes within a job of normal priority.