stopIsolate method
stop for this isolate only. Internal: each isolate runs it.
Implementation
Future<void> stopIsolate() async {
await DoxServer().shutdown(config.shutdownTimeout);
for (DoxProvider provider in doxProviders) {
try {
await provider.shutdown();
} catch (error, stackTrace) {
config.exceptionHandler.report(error, stackTrace);
}
}
// after the providers: they may still use the cache
try {
await cache.close();
} catch (error, stackTrace) {
config.exceptionHandler.report(error, stackTrace);
}
}