synca
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

synca

Downloads Version License Language Typescript

Usage

with Deno

import { concurrent } from "https://deno.land/x/synca/mod.ts";

const co = concurrent(4 /* concurrency */);

for (let i = 0; i < 100; i++) {
  await co.run(async () => {
    await fetch(`https://something/articles/${i}`);
  });
}

await co.wait(); // remain works..

with Node.js & Browser

Install

npm install synca
import { concurrent } from "synca";

// Usage is as above :-)

Related

Readme

Keywords

none

Package Sidebar

Install

npm i synca

Weekly Downloads

9

Version

0.0.1

License

MIT

Unpacked Size

6.42 kB

Total Files

16

Last publish

Collaborators

  • wan2land