<PackageReference Include="ReactiveUI.Primitives.Core" Version="10.0.0" />

ReactiveUI.Primitives.Concurrency.ScheduledItem<TAbsolute>

public sealed class ScheduledItem<TAbsolute> : IScheduledItem<TAbsolute>, IComparable<ScheduledItem<TAbsolute>>, IsDisposed, IDisposable, IComparable where TAbsolute : IComparable<TAbsolute>
Provides the base implementation for a scheduled unit of work that is ordered by an absolute due time.
public TAbsolute DueTime { get; }

Gets the absolute time at which this work item is scheduled to run.

public bool IsDisposed { get; }

Gets a value indicating whether this work item has been canceled or disposed, so Invoke starts no work.

public ScheduledItem(TAbsolute dueTime, IComparer<TAbsolute> comparer, Func<ScheduledItem<TAbsolute>, IDisposable> invokeCore)

Initializes a new instance of the ScheduledItem<T> class.

public static bool op_Equality(ScheduledItem<TAbsolute> left, ScheduledItem<TAbsolute> right)

Determines whether two scheduled item references are the same object.

public static bool op_GreaterThan(ScheduledItem<TAbsolute> left, ScheduledItem<TAbsolute> right)

Determines whether the first scheduled item is due after the second scheduled item.

public static bool op_GreaterThanOrEqual(ScheduledItem<TAbsolute> left, ScheduledItem<TAbsolute> right)

Determines whether the first scheduled item is due after, or at the same time as, the second scheduled item.

public static bool op_Inequality(ScheduledItem<TAbsolute> left, ScheduledItem<TAbsolute> right)

Determines whether two scheduled item references are not the same object.

public static bool op_LessThan(ScheduledItem<TAbsolute> left, ScheduledItem<TAbsolute> right)

Determines whether the first scheduled item is due before the second scheduled item.

public static bool op_LessThanOrEqual(ScheduledItem<TAbsolute> left, ScheduledItem<TAbsolute> right)

Determines whether the first scheduled item is due before, or at the same time as, the second scheduled item.

public void Cancel()

Cancels this scheduled work item; an alias for Dispose.

public int CompareTo(ScheduledItem<TAbsolute> other)

Compares this scheduled item with another scheduled item by due time.

public int CompareTo(object obj)

Compares this scheduled item with another object by due time.

public void Dispose()

Releases the resources associated with this scheduled item and prevents future invocation.

public void Invoke()

Runs this scheduled work item if it has not been canceled.