Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream API? #1

Open
vicary opened this issue Sep 14, 2022 · 0 comments
Open

Stream API? #1

vicary opened this issue Sep 14, 2022 · 0 comments

Comments

@vicary
Copy link
Owner

vicary commented Sep 14, 2022

The whole Workerpool idea may be split up into two main parts:

  1. A TaskEmitter which emit tasks as a ReadableSteam
  2. A TaskExecutor acting as a WriteableStream which takes task objects as chunks.

Worker concurrency is essentially implemented as back pressure between the streams, we can even allow runner types to be added/removed on the fly.

Questions to be answered:

  1. Does Deno streams support object mode?
  2. What if TaskExecutor has other unknown data piped into it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant