# @quenty/cancellabledelay

> cancellableDelay a delay that can be cancelled

Latest version **3.6.2** (published 2026-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @quenty/cancellabledelay
pnpm add @quenty/cancellabledelay
yarn add @quenty/cancellabledelay
bun add @quenty/cancellabledelay
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 3.6.2 |
| Published | 2026-01-12 |
| First published | 2021-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 610 |
| Maintainers | quenty |
| Keywords | Roblox, Nevermore, Lua, Time |

## Links

- npm: https://www.npmjs.com/package/@quenty/cancellabledelay
- Repository: https://github.com/Quenty/NevermoreEngine
- Homepage: https://github.com/Quenty/NevermoreEngine#readme
- Issues: https://github.com/Quenty/NevermoreEngine/issues
- Funding: https://www.patreon.com/quenty
- npm.io page: https://npm.io/package/@quenty/cancellabledelay

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 3.6.2 (latest) — 2026-01-12
- 3.6.2-canary.635.9651b09.0 (canary) — 2026-01-12
- 3.6.1 — 2026-01-10
- 3.6.1-canary.631.d1ff13c.0 — 2026-01-10
- 3.6.1-canary.631.a8364df.0 — 2026-01-10
- 3.6.1-canary.631.91b277a.0 — 2026-01-10
- 3.6.0 — 2025-05-10
- 3.5.3-canary.559.9f38947.0 — 2025-05-10
- 3.5.3-canary.559.339cfa7.0 — 2025-05-10
- 3.5.3-canary.11a5dcf.0 — 2025-05-10
- 3.5.2 — 2025-04-07
- 3.5.2-canary.547.11ae689.0 — 2025-04-07
- 3.5.2-canary.547.ba47c62.0 — 2025-04-07
- 3.5.1 — 2025-04-05
- 3.5.1-canary.545.2374fb2.0 — 2025-04-05
- … 46 more at https://npm.io/package/@quenty/cancellabledelay/versions

## README

## cancellableDelay
<div align="center">
  <a href="http://quenty.github.io/NevermoreEngine/">
    <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
  </a>
  <a href="https://discord.gg/mhtGUS8">
    <img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
  </a>
  <a href="https://github.com/Quenty/NevermoreEngine/actions">
    <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
  </a>
</div>

cancellableDelay a delay that can be cancelled

<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/cancellableDelay">View docs →</a></div>

## Installation
```
npm install @quenty/cancellabledelay --save
```

## Usage
Usage is pretty simple, it's a delay function that returns.

```lua
local cancel = cancellableDelay(2, function(arg)
    print("Executing", arg)
end, 5)

delay(1, function()
    cancel() -- cancel
end)
```

---
_Source: https://npm.io/package/@quenty/cancellabledelay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
