SharedHap.detachAll
void detachAll(this This)() @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.