nextWhere method
Future<EffectCommandState<A, E> >
nextWhere(
- bool where(
- EffectCommandState<
A, E> state
- EffectCommandState<
- 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);
}