# @saber2pr/schedular

> > 基于 requestIdleCallback 的优先级调度

Latest version **0.0.8** (published 2019-06-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @saber2pr/schedular
pnpm add @saber2pr/schedular
yarn add @saber2pr/schedular
bun add @saber2pr/schedular
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2019-06-13 |
| First published | 2019-05-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | saber2pr |
| Maintainers | saber2pr |
| Keywords | requestIdleCallback, schedular |

## Links

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

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.8 (latest) — 2019-06-13
- 0.0.7 — 2019-06-13
- 0.0.6 — 2019-06-13
- 0.0.5 — 2019-05-06
- 0.0.4 — 2019-05-06
- 0.0.3 — 2019-05-06
- 0.0.2 — 2019-05-06
- 0.0.1 — 2019-05-06

## README

# @saber2pr/schedular

[![npm](https://img.shields.io/npm/v/@saber2pr/schedular.svg?color=blue)](https://www.npmjs.com/package/@saber2pr/schedular)

> 基于 requestIdleCallback 的优先级调度

```bash
# from npm
npm install @saber2pr/schedular

# from github
git clone https://github.com/Saber2pr/-saber2pr-schedular.git
```

## API

```ts
import VM from '@saber2pr/schedular'

new VM()
  .push({
    expirationTime: 40,
    idleCallback: () => console.log('low priority')
  })
  .push({
    expirationTime: 25,
    idleCallback: () => console.log('common priority')
  })
  .push(() => console.log('high priority')) // expirationTime: 0
```

---

## start

```bash
npm install
```

```bash
npm start

npm run dev

```

> Author: saber2pr

---

## develope and test

> you should write ts in /src

> you should make test in /src/test

> export your core in /src/index.ts!

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