end method

void end(
  1. int token
)

Close the gate, but only if token is the current hold.

Implementation

void end(int token) {
  if (_token != token) return;
  _release();
}