New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polywrap/concurrent-plugin-js

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polywrap/concurrent-plugin-js

Run wrap invocations concurrently using promises

  • 0.12.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
101
increased by62.9%
Maintainers
2
Weekly downloads
 
Created
Source

@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:

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__.

FAQs

Package last updated on 20 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc