From baecb79eda34730e150d42bef3a5ed07bfc244eb Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Tue, 6 Sep 2022 12:09:17 +0200 Subject: [PATCH] Add TODO for proper `after` job cancellation --- minetest/misc.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minetest/misc.lua b/minetest/misc.lua index 4222204..3cd4b57 100644 --- a/minetest/misc.lua +++ b/minetest/misc.lua @@ -19,6 +19,8 @@ local jobs = modlib.heap.new(function(a, b) end) local job_metatable = { __index = { + -- TODO (...) proper (instant rather than deferred) cancellation: + -- Keep index [job] = index, swap with last element and heapify cancel = function(self) self.cancelled = true end