# @polywrap/concurrent-plugin-js

> Run wrap invocations concurrently using promises

Latest version **0.12.0** (published 2023-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @polywrap/concurrent-plugin-js
pnpm add @polywrap/concurrent-plugin-js
yarn add @polywrap/concurrent-plugin-js
bun add @polywrap/concurrent-plugin-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.12.0 |
| Published | 2023-08-20 |
| First published | 2023-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 42.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | polywrap-build-bot, dorgjelli |

## Links

- npm: https://www.npmjs.com/package/@polywrap/concurrent-plugin-js
- Repository: https://github.com/polywrap/concurrent
- npm.io page: https://npm.io/package/@polywrap/concurrent-plugin-js

## Dependencies (3)

- [@polywrap/core-js](https://npm.io/package/@polywrap/core-js.md) ~0.12.0
- [@polywrap/plugin-js](https://npm.io/package/@polywrap/plugin-js.md) ~0.12.0
- [@polywrap/msgpack-js](https://npm.io/package/@polywrap/msgpack-js.md) ~0.12.0

## Recent versions

- 0.12.0 (latest) — 2023-08-20
- 0.12.0-pre.0 (pre) — 2023-07-26
- 0.10.0 — 2023-04-28
- 0.10.0-pre.10 — 2023-03-04

## README

# @polywrap/concurrent-plugin-js

The Concurrent plugin enables wraps running within the Polywrap client to run multiple invocations in parallel. This implementation utilizes JavaScript Promises for concurrent tasks.

## Interface

The Concurrent plugin implements an existing wrap interface at `wrapscan.io/polywrap/concurrent@1.0`.

## Usage

Add the concurrent plugin to the Polywrap client's configuration:
```typescript
import { PolywrapClient, ClientConfigBuilder } from "@polywrap/client-js";
import { concurrentPromisePlugin } from "@polywrap/concurrent-plugin-js";

const config = new ClientConfigBuilder()
  .addPackage(
    "wrapscan.io/polywrap/concurrent@1.0",
    concurrentPromisePlugin({ })
  )
  .build();

const client = new PolywrapClient();
```

Now wraps that depend upon the concurrent interface will be using the "concurrent promise plugin" implementation.

For more usage examples see `src/__tests__`.

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