Class NotifyingSourceBlock<T>
- Namespace
- CounterpointCollective.Dataflow.Notifying
- Assembly
- Dataflow.Composable.dll
Notifies via Hooks when a message is sent to a target block and when a reservation is released.
The evens are sent in order.
public class NotifyingSourceBlock<T> : IReceivableSourceBlock<T>, ISourceBlock<T>, IDataflowBlock
Type Parameters
T
- Inheritance
-
NotifyingSourceBlock<T>
- Implements
-
ISourceBlock<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
NotifyingSourceBlock(ISourceBlock<T>, ConfigureAsyncHooks<T>)
public NotifyingSourceBlock(ISourceBlock<T> innerBlock, ConfigureAsyncHooks<T> c)
Parameters
innerBlockISourceBlock<T>cConfigureAsyncHooks<T>
NotifyingSourceBlock(ISourceBlock<T>, ConfigureHooks<T>)
public NotifyingSourceBlock(ISourceBlock<T> innerBlock, ConfigureHooks<T> c)
Parameters
innerBlockISourceBlock<T>cConfigureHooks<T>
Methods
ProcessPendingEvents()
public void ProcessPendingEvents()
ProcessPendingEventsAsync()
Processes all pending events in the event queue and blocks until all events have been handled.
public ValueTask ProcessPendingEventsAsync()
Returns
Remarks
This method ensures that any events currently queued are processed before returning. If all events have already been processed, the method returns immediately. Otherwise, it waits until the last event currently queued is processed. This method is typically used to synchronize with the event system and guarantee that no pending events remain before proceeding.