Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polywrap/concurrent
Concurrent interface and implementations
https://github.com/polywrap/concurrent
Last synced: 2 months ago
JSON representation
Concurrent interface and implementations
- Host: GitHub
- URL: https://github.com/polywrap/concurrent
- Owner: polywrap
- License: mit
- Created: 2022-12-15T07:15:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-20T21:10:14.000Z (over 1 year ago)
- Last Synced: 2024-10-28T15:40:41.391Z (3 months ago)
- Language: TypeScript
- Size: 697 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-polywrap - Concurrent - A common concurrency interface that can be shared across various concurrency implementations, like Threads, Processes, and even language specific primitives like JavaScript Promises. (Wraps)
README
# Polywrap Concurrent
An interface and implementations for concurrent Polywrap invocations.
Table Of Contents:
1. [Concurrent Interface](./interface/README.md)
2. [Concurrent Implementation (JavaScript Promise)](implementations/js/README.md)## A quick primer on terminology
```
concurrent
-> task(s)
-> worker(s)
```Defining terms:
- concurrent plugin = an implementation of the concurrent interface, using a specific concurrency mechanism (threads, promises, etc)
- task = a wrapper invocation
- worker = an instance of the underlying concurrency mechanism (thread, promise, etc)You can:
- set max number of workers
- schedule tasks
- check status of tasks
- gather results of tasks (first, all, any)
- abort tasks