dispose method

void dispose()

Implementation

void dispose() {
  // Before the semantics teardown, so a live hold is given back even if that
  // one throws: the screen staying lit is the failure a consumer cannot see.
  keepAwake.dispose();
  // The inspector switch is App state Patchbay installed, so tearing the
  // bridge down puts it back rather than leaving the device in select mode.
  inspect?.dispose();
  semantics.dispose();
}