Table of Contents

Class ScheduleTaskState<TKey>

Namespace
LfrlAnvil.Reactive.Chrono
Assembly
LfrlAnvil.Reactive.Chrono.dll

Represents a snapshot of schedule task's state.

public sealed record ScheduleTaskState<TKey> : IEquatable<ScheduleTaskState<TKey>> where TKey : notnull

Type Parameters

TKey

Scheduler's key type.

Inheritance
ScheduleTaskState<TKey>
Implements
Inherited Members

Constructors

ScheduleTaskState(ReactiveTaskSnapshot<IScheduleTask<TKey>>, Timestamp?, Duration, int?, bool)

Represents a snapshot of schedule task's state.

public ScheduleTaskState(ReactiveTaskSnapshot<IScheduleTask<TKey>> State, Timestamp? NextTimestamp, Duration Interval, int? Repetitions, bool IsDisposed)

Parameters

State ReactiveTaskSnapshot<IScheduleTask<TKey>>

Underlying state.

NextTimestamp Timestamp?

Next Timestamp at which this task should be invoked.

Interval Duration

Duration between subsequent task invocations.

Repetitions int?

Number of repetitions of this task.

IsDisposed bool

Specifies whether or not the task has been disposed.

Properties

Interval

Duration between subsequent task invocations.

public Duration Interval { get; init; }

Property Value

Duration

IsDisposed

Specifies whether or not the task has been disposed.

public bool IsDisposed { get; init; }

Property Value

bool

IsInfinite

Specifies whether or not this task repeats infinitely.

public bool IsInfinite { get; }

Property Value

bool

NextTimestamp

Next Timestamp at which this task should be invoked.

public Timestamp? NextTimestamp { get; init; }

Property Value

Timestamp?

Repetitions

Number of repetitions of this task.

public int? Repetitions { get; init; }

Property Value

int?

State

Underlying state.

public ReactiveTaskSnapshot<IScheduleTask<TKey>> State { get; init; }

Property Value

ReactiveTaskSnapshot<IScheduleTask<TKey>>