Finish the last synchronous operation that was started.

Source

static void finishSync() {
  if (_stack.length == 0) {
    throw new StateError(
        'Uneven calls to startSync and finishSync');
  }
  // Pop top item off of stack.
  var block = _stack.removeLast();
  // Close it.
  block.close();
}