Waiter<T> constructor

Waiter<T>({
  1. _TOnErrorCallback? onError,
  2. List<_TOperation<T>> operations = const [],
})

Creates a waiter to queue and manage deferred operations.

Implementation

Waiter({
  _TOnErrorCallback? onError,
  List<_TOperation<T>> operations = const [],
}) : _onError = onError,
     _operations = [...operations];