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