Class CdpEventStream<TParams>
An async stream of CDP event parameters.
public sealed class CdpEventStream<TParams> : IEventStream<TParams>, IAsyncDisposable where TParams : EventArgs
Type Parameters
TParamsThe type of event parameters.
- Inheritance
-
CdpEventStream<TParams>
- Implements
-
IEventStream<TParams>
- Inherited Members
Methods
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
- ValueTask
A task that represents the asynchronous dispose operation.
ReadAllAsync(CancellationToken)
public IAsyncEnumerable<TParams> ReadAllAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken
Returns
- IAsyncEnumerable<TParams>