# x10.js

> Web worker wrapper with simple interface

Latest version **0.1.3** (published 2017-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install x10.js
pnpm add x10.js
yarn add x10.js
bun add x10.js
```

## 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.1.3 |
| Published | 2017-09-26 |
| First published | 2017-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Hakan Bilgin |
| Maintainers | hbi99 |
| Keywords | web worker, thread, javascript |

## Links

- npm: https://www.npmjs.com/package/x10.js
- Repository: https://github.com/hbi99/x10.js
- Homepage: https://github.com/hbi99/x10.js#readme
- Issues: https://github.com/hbi99/x10.js/issues
- npm.io page: https://npm.io/package/x10.js

## Alternatives

- [cron](https://npm.io/package/cron.md) — 4.9M weekly downloads
- [@vercel/queue](https://npm.io/package/@vercel/queue.md) — 731.6K weekly downloads
- [create-sonicjs](https://npm.io/package/create-sonicjs.md) — 1.6K weekly downloads
- [@exellix/jobs-api](https://npm.io/package/@exellix/jobs-api.md) — 941 weekly downloads
- [@forwardimpact/libskill](https://npm.io/package/@forwardimpact/libskill.md) — 575 weekly downloads

## Recent versions

- 0.1.3 (latest) — 2017-09-26

## README

# x10.js
Using __x10.js__, long-running scripts can run in a dedicated thread and thereby have a non-blocking effect on the UI-thread. In Firefox and Safari, scripts in the dedicated thread runs even faster than in UI-thread (in some cases, ten times faster).

The interface of __x10.js__ is very easy and migrating to / from __x10.js__ have minimal impact on your code.

```js
var obj = {
		loop: function(len) {
			while (len--) {}
		}
	};

// UI thread IS blocked when executing this
var start = Date.now();
obj.loop(100000000);
console.log( Date.now() - start );
// 990 milliseconds



// compile the object with 'x10.js'
var task = x10.compile(obj);

// worker thread - UI thread is NOT blocked when executing this
start = Date.now();
task.loop(100000000, function() {
	console.log( Date.now() - start );
	// 146 milliseconds
});
```

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