@quenty/cancellabledelay
v3.5.0
Published
cancellableDelay a delay that can be cancelled
Downloads
8,238
Readme
cancellableDelay
cancellableDelay a delay that can be cancelled
Installation
npm install @quenty/cancellabledelay --save
Usage
Usage is pretty simple, it's a delay function that returns.
local cancel = cancellableDelay(2, function(arg)
print("Executing", arg)
end, 5)
delay(1, function()
cancel() -- cancel
end)