closeEvents method
Closes the internal event bridge. Call from owners that explicitly dispose the service. Safe to call multiple times.
Implementation
Future<void> closeEvents() async {
await _repoEventsSub.cancel();
if (!_eventsController.isClosed) {
await _eventsController.close();
}
}