Table of Contents

Class TimerTaskCollection<TKey>

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

Represents an attached collection of ITimerTask<TKey> instances.

public sealed class TimerTaskCollection<TKey> : IDisposable where TKey : notnull

Type Parameters

TKey

Task key type.

Inheritance
TimerTaskCollection<TKey>
Implements
Inherited Members

Properties

EventCount

Number of events emitted by the source event stream.

public long EventCount { get; }

Property Value

long

FirstTimestamp

First Timestamp of an event emitted by the source event stream.

public Timestamp? FirstTimestamp { get; }

Property Value

Timestamp?

LastTimestamp

Last Timestamp of an event emitted by the source event stream.

public Timestamp? LastTimestamp { get; }

Property Value

Timestamp?

TaskKeys

Collection of registered task keys.

public IReadOnlyCollection<TKey> TaskKeys { get; }

Property Value

IReadOnlyCollection<TKey>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

TryGetTaskSnapshot(TKey)

Attempts to create a ReactiveTaskSnapshot<TTask> instance for the given task key.

[Pure]
public ReactiveTaskSnapshot<ITimerTask<TKey>>? TryGetTaskSnapshot(TKey key)

Parameters

key TKey

Task key to create a snapshot for.

Returns

ReactiveTaskSnapshot<ITimerTask<TKey>>

New ReactiveTaskSnapshot<TTask> instance or null when task does not exist.