Skip to content

Multiple function return values at different times #158

@leumasme

Description

@leumasme

I looked through the documentation for a bit, but couldn't spot anything that would allow for returning multiple results at different times.
Example usecases for this would be a Node Script that starts multiple async jobs (like starting multiple web requests) and would like to return the result of each job as soon as it is done, without having to wait for each of them to complete.
Example implemententions on the JS side could look like an (async) generator function or a callback that can be called multiple times.
What the C# side of the implementation for the above methods could look like isnt clear to me.
The C# call could possibly provide one (or multiple!?) methods that would be called upon a callback/result.

It's perfectly reasonable if you declare this to be utterly out of scope - in this case, does anyone reading this happen to know of alternative libraries which provide such funcionality?
Thank you for your time either way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions