@quenty/cancellabledelay

3.5.0 • Public • Published

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)

Package Sidebar

Install

npm i @quenty/cancellabledelay

Weekly Downloads

1,476

Version

3.5.0

License

MIT

Unpacked Size

7.25 kB

Total Files

6

Last publish

Collaborators

  • quenty