Show / Hide Table of Contents

Interface IWorkItem

Interface representing a scheduler work item.

Namespace: Reaqtive.Scheduler
Assembly: Reaqtive.Scheduler.dll
Syntax
public interface IWorkItem

Properties

IsPaused

Gets or sets a value indicating whether the item is paused.

Declaration
bool IsPaused { get; set; }
Property Value
Type Description
System.Boolean

IsRunnable

Gets a value indicating whether this instance is runnable.

Declaration
bool IsRunnable { get; }
Property Value
Type Description
System.Boolean

Priority

Gets the item's priority.

Declaration
long Priority { get; }
Property Value
Type Description
System.Int64

Scheduler

Gets the logical scheduler that owns the work item.

Declaration
IScheduler Scheduler { get; }
Property Value
Type Description
IScheduler

Task

Gets the task to run.

Declaration
ISchedulerTask Task { get; }
Property Value
Type Description
ISchedulerTask

Methods

Invoke()

Invokes the item.

Declaration
bool Invoke()
Returns
Type Description
System.Boolean

true if the task has completed and should not be rescheduled; otherwise, false.

RecalculatePriority()

Recalculates the priority.

Declaration
void RecalculatePriority()
In This Article
Back to top Generated by DocFX