void finish()

Finish this block. Cannot be called twice.

Source

void finish() {
  if (_finished) {
    throw new StateError(
        'It is illegal to call finish twice on the same AsyncBlock');
  }
  _finished = true;
  _finish();
}