# saber-interval

> scheduleUpdate

Latest version **1.1.4** (published 2019-03-20) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install saber-interval
pnpm add saber-interval
yarn add saber-interval
bun add saber-interval
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.4 |
| Published | 2019-03-20 |
| First published | 2019-01-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | saber2pr |
| Maintainers | saber2pr |

## Links

- npm: https://www.npmjs.com/package/saber-interval
- Repository: https://github.com/Saber2pr/saber-interval
- Homepage: https://github.com/Saber2pr/saber-interval#readme
- Issues: https://github.com/Saber2pr/saber-interval/issues
- npm.io page: https://npm.io/package/saber-interval

## Recent versions

- 1.1.4 (latest) — 2019-03-20
- 1.1.3 — 2019-03-20
- 1.1.2 — 2019-02-04
- 1.1.1 — 2019-02-04
- 1.1.0 — 2019-01-11
- 1.0.9 — 2019-01-10
- 1.0.8 — 2019-01-07
- 1.0.7 — 2019-01-06
- 1.0.6 — 2019-01-06
- 1.0.5 — 2019-01-06
- 1.0.4 — 2019-01-04
- 1.0.3 — 2019-01-03
- 1.0.2 — 2019-01-03
- 1.0.1 — 2019-01-03
- 1.0.0 — 2019-01-03

## README

# @saber2pr/interval

> Interval use requestAnimationFrame.

```bash
npm install @saber2pr/interval
```

# API

```ts
const interval = new Interval() // delta is 16

const interval = new Interval(1000) // delta is 1000
```

## Interval.push

```ts
const update1 = time => console.log('update1', time)
const update2 = time => console.log('update2', time)

interval.push(update1, update2)
```

## interval.remove

```ts
const update1 = time => console.log('update1', time)

interval.remove(update1)
```

## interval.setDelta

```ts
interval.setDelta(500) // delta is changed to 500
```

## interval.execute

```ts
interval.execute() // interval is starting...
```

## interval.cancel

```ts
interval.cancel() // interval is canceled.
```

# Author

> saber2pr

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