13 private readonly CancellationToken _cancel;
18 public string Token => _eventSource.Token;
23 CancellationToken cancel =
default)
26 _eventSource = eventSource;
36 await
using var subscribeStream = _client.SubscribeStream<T>(
41 while (!_cancel.IsCancellationRequested && await subscribeStream.MoveNextAsync())
43 yield
return subscribeStream.Current;
The base class for Client and DataContext.
A class representing a Fauna Event Stream. Additional queries will be made during enumeration.
string Token
The token for the event source.
async IAsyncEnumerator< Event< T > > GetAsyncEnumerator()
Gets an async enumerator for the stream.
Represents a Fauna EventSource for initializing Streams and Feeds.