close method

void close()

Releases the trampoline. Idempotent.

Implementation

void close() {
  if (_closed) return;
  _closed = true;
  _callable?.close();
  _callable = null;
}