WinJS.Utilities.Scheduler.IJobInfo interface

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
  • Properties

Methods

The IJobInfo interface has these methods.

Method Description
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.

Property Access type Description

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 WinJS version

WinJS 2.0

Namespace

WinJS.Utilities.Scheduler