# asyncmarks

> AsyncMarks. Running code after confirmation of all marks.

Latest version **0.0.4** (published 2014-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install asyncmarks
pnpm add asyncmarks
yarn add asyncmarks
bun add asyncmarks
```

## 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.4 |
| Published | 2014-11-19 |
| First published | 2014-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | lampa |
| Maintainers | lampa |
| Keywords | asyncmarks, async, marks, promises |

## Links

- npm: https://www.npmjs.com/package/asyncmarks
- Repository: https://github.com/lampaa/AsyncMarks
- Issues: https://github.com/lampaa/AsyncMarks/issues
- npm.io page: https://npm.io/package/asyncmarks

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.4 (latest) — 2014-11-19

## README

AsyncMarks
==========
Download last version: [index.js](index.js "index.js")

The library allows to execute arbitrary code after execute all marks.

Example: 

```js
var deferred = AsyncMarks();
//
var firstMark = deferred.addMark();
setTimeout(function() {
	console.log('first timeout complete, 300ms');
	firstMark.complete();
}, 300);

//
var secondMark = deferred.addMark();
setTimeout(function() {
	console.log('second timeout complete, 1300ms');
	secondMark.complete();
}, 1300);

deferred.addMark('third');
setTimeout(function() {
	console.log('third timeout complete, 700ms');
	deferred.completeMark('third');
}, 700);

deferred.complete(function() {
	console.log('all marks complete');
});
```

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