public async ValueTask <ProducerStateChanged> StateChangedFrom(ProducerState state, CancellationToken cancellationToken) { var newState = await _state.StateChangedFrom(state, cancellationToken).ConfigureAwait(false); return(new ProducerStateChanged(this, newState)); }
public async ValueTask <ReaderState> OnStateChangeFrom(ReaderState state, CancellationToken cancellationToken) => await _state.StateChangedFrom(state, cancellationToken).ConfigureAwait(false);
public async ValueTask <ConsumerState> StateChangedFrom(ConsumerState state, CancellationToken cancellationToken) => await _state.StateChangedFrom(state, cancellationToken);