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

[FEATURE REQUEST] Allow sending Streams and Futures as input to Isolate #44

Open
lohnn opened this issue Mar 12, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@lohnn
Copy link
Owner

lohnn commented Mar 12, 2024

Is your feature request related to a problem? Please describe.
It is now impossible to send Futures and Streams as input to a StatefulIsolate, allowing this would greatly increase usability.

Describe the solution you'd like
StatefulIsolate should be able to handle such cases and send the items one by one to the isolate with a protocol specifically for supporting this use case. (Basically same as for Isolate -> Main, but the other way).

The backpressure strategy should consider a full stream as one input and not handle the stream as individual items/jobs.

Describe alternatives you've considered
The workaround is to await the value/values and send them manually, but that might yield unexpected results depending on backpressure strategy.

@lohnn lohnn added the enhancement New feature or request label Mar 12, 2024
@lohnn lohnn added this to the 1.0 milestone Mar 12, 2024
@lohnn lohnn self-assigned this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant