From be44514a51d3d68e3aa06b28573015bcb609d351 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 26 Nov 2022 17:14:20 +0200 Subject: [PATCH] Cleaned up `shutdown()` and added some TODOs --- source/eventy/engine.d | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/eventy/engine.d b/source/eventy/engine.d index b7d6b82..5c95ca6 100644 --- a/source/eventy/engine.d +++ b/source/eventy/engine.d @@ -306,16 +306,15 @@ public final class Engine : Thread } /** - * Stops the engine - * - * TODO: Examine cases where this may not work - * TODO: Should we perhaps kill all other things - * i.e. stopping running threads + * Shuts down the event engine */ public void shutdown() { /* TODO: Insert a lock here, that dispatch should adhere too as well */ + /* FIXME: We should prevent adding of queues during shutdown */ + /* FIXME: We should prevent pushing of events during shutdown */ + /* Wait for any pendings events (if configured) */ if(settings.gracefulShutdown) {