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
TEventEvent 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
eventTEventout 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
eventTEventout parameter that returns the underlying emitted event.
disposalSourceDisposalSource?out parameter that returns information about subscription disposal source.
Returns
- bool
true when the event exists, otherwise false.