reset method

void reset()

Drops the registry view so the next rehydrate loads afresh — used when the host switches to a different parent session (each session owns its own registry). Wake bookkeeping is dropped with it: the new session's children start clean.

Implementation

void reset() {
  _handles.clear();
  _rehydrated = false;
  _wakingChildren.clear();
  _unwakeableChildren.clear();
}