Exemple #1
0
        public async ValueTask <ProducerStateChanged> StateChangedTo(ProducerState state, CancellationToken cancellationToken)
        {
            var newState = await _state.StateChangedTo(state, cancellationToken).ConfigureAwait(false);

            return(new ProducerStateChanged(this, newState));
        }
Exemple #2
0
 public async ValueTask <ReaderState> OnStateChangeTo(ReaderState state, CancellationToken cancellationToken)
 => await _state.StateChangedTo(state, cancellationToken).ConfigureAwait(false);
Exemple #3
0
 public async ValueTask <ConsumerState> StateChangedTo(ConsumerState state, CancellationToken cancellationToken)
 => await _state.StateChangedTo(state, cancellationToken);