SharedHap.detachAll
void detachAll() @safeDetach all handlers.
Handlers from an already-captured dispatch snapshot may still run during the current emit; subsequent emits see the empty handler list unless new handlers are attached after this call.