Detalhes do pacote

@quenty/cancellabledelay

Quenty384MIT3.6.0

cancellableDelay a delay that can be cancelled

Roblox, Nevermore, Lua, Time

readme (leia-me)

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)

changelog (log de mudanças)

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.6.0 (2025-05-10)

Note: Version bump only for package @quenty/cancellabledelay

3.5.2 (2025-04-07)

Bug Fixes

  • Add types to packages (2374fb2)
  • Bump package versions for republishing (ba47c62)

3.5.1 (2025-04-07)

Bug Fixes

3.5.0 (2024-05-09)

Bug Fixes

  • Fix .package-lock.json replicating in packages (75d0efe)

3.4.0 (2023-02-21)

Note: Version bump only for package @quenty/cancellabledelay

3.3.0 (2022-06-21)

Note: Version bump only for package @quenty/cancellabledelay

3.2.0 (2022-03-27)

Note: Version bump only for package @quenty/cancellabledelay

3.1.0 (2022-03-10)

Bug Fixes

  • Fix cancellation occuring when the resulting task yields (d74eae8)

3.0.0 (2022-03-06)

Performance Improvements

  • cancellableDelay is actually cancelled and does not leak memory (1cf3149)

2.2.0 (2022-01-03)

Note: Version bump only for package @quenty/cancellabledelay

2.1.1 (2021-12-30)

Note: Version bump only for package @quenty/cancellabledelay

2.1.0 (2021-12-18)

Bug Fixes

  • use task.delay() instead of delay() (f3171d4)

2.0.0 (2021-09-05)

Bug Fixes

  • Remove peer dependencies. This is because lerna doesn't really support peer dependencies being linked and getting a new version on build, which is unfortunate. (5f5aeee)

1.2.0 (2021-07-31)

Bug Fixes

  • Add CI and CD (47513e9)
  • Adjust CI badge to show automatic build and release state (5a55d3f)
  • Fix selene linting (45fc074)

1.0.2 (2021-07-25)

1.0.1 (2021-07-25)

1.0.0 (2021-07-24)