nextWhere method

Future<EffectCommandState<A, E>> nextWhere(
  1. bool where(
    1. EffectCommandState<A, E> state
    ), {
  2. Duration timeout = const Duration(seconds: 5),
})

Wait for a future state satisfying where. Previously recorded states are ignored.

Implementation

Future<EffectCommandState<A, E>> nextWhere(
  bool Function(EffectCommandState<A, E> state) where, {
  Duration timeout = const Duration(seconds: 5),
}) {
  _ensureOpen();
  return _wait(where, timeout: timeout);
}