operations property

List<WaiterOperation<T>> get operations

A read-only snapshot of the pending operations.

The returned list is unmodifiable; the underlying queue cannot be mutated through it. The returned value is also a copy, not a live view, so capturing it and then calling add / clear does not retro-mutate what the caller is iterating.

Implementation

List<WaiterOperation<T>> get operations =>
    List<WaiterOperation<T>>.unmodifiable(_operations);