pop<T extends Object?> method

bool pop<T extends Object?>([
  1. T? result
])

Requests a pop. The exit guard may asynchronously veto it.

Implementation

bool pop<T extends Object?>([T? result]) {
  _ensureOpen();
  if (!canPop) return false;
  unawaited(_pop(result));
  return true;
}