WinJS.Utilities.Scheduler.IJobInfo interface

Applies to Windows and Windows Phone

Provides a control mechanism that allows a job to cooperatively yield. This object is passed to your work function when you schedule it.

Members

The IJobInfo interface has these types of members:

Methods

The IJobInfo interface has these methods.

MethodDescription
setPromise

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

setWork

Specifies the next unit of work to run once this job yields.

 

Properties

The IJobInfo interface has these properties.

PropertyAccess typeDescription

job

Read-only

Gets the work item associated with this IJobInfo.

shouldYield

Read-only

Gets a value that specifies whether the job should yield.

 

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

 

 

Show:
© 2014 Microsoft