mirror of
https://github.com/appgurueu/modlib.git
synced 2024-12-22 13:22:27 +01:00
Add TODO for proper after
job cancellation
This commit is contained in:
parent
7297852127
commit
baecb79eda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user