Table of Contents

Struct AsyncEnumerableEvent<TEvent>

Namespace
LfrlAnvil.Reactive.Extensions
Assembly
LfrlAnvil.Reactive.Core.dll

Represents an event emitted by an event source, converted to an async enumerable element.

public readonly struct AsyncEnumerableEvent<TEvent>

Type Parameters

TEvent

Event type.

Inherited Members

Methods

ToString()

Returns a string representation of this AsyncEnumerableEvent<TEvent> instance.

[Pure]
public override string ToString()

Returns

string

String representation.

TryGetEvent(out TEvent)

Attempts to extract the underlying emitted event.

public bool TryGetEvent(out TEvent @event)

Parameters

event TEvent

out parameter that returns the underlying emitted event.

Returns

bool

true when the event exists, otherwise false.

Remarks

Entries returning false represent subscription disposal.

TryGetEvent(out TEvent, out DisposalSource?)

Attempts to extract the underlying emitted event.

public bool TryGetEvent(out TEvent @event, out DisposalSource? disposalSource)

Parameters

event TEvent

out parameter that returns the underlying emitted event.

disposalSource DisposalSource?

out parameter that returns information about subscription disposal source.

Returns

bool

true when the event exists, otherwise false.