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

feat(runtime)!: allow adding streams to own event loop #284

Merged
merged 11 commits into from
Jun 23, 2022
Merged

feat(runtime)!: allow adding streams to own event loop #284

merged 11 commits into from
Jun 23, 2022

Conversation

DaughterOfMars
Copy link
Collaborator

@DaughterOfMars DaughterOfMars commented Jun 14, 2022

This PR changes the way adding additional streamed events to actor event loops works. Previously, the supervisor was required to construct the stream and add it via SpawnConfig. This put too much of the child actor's logic in the hands of the supervisor. This PR adds the add_stream method to the ActorContext, which allows actors to add streams they construct to their own event loop.

@DaughterOfMars DaughterOfMars changed the title feat!: allow adding streams to own event loop feat(runtime)!: allow adding streams to own event loop Jun 15, 2022
src/runtime/merge.rs Outdated Show resolved Hide resolved
Alex6323
Alex6323 previously approved these changes Jun 22, 2022
@grtlr grtlr linked an issue Jun 22, 2022 that may be closed by this pull request
@grtlr grtlr merged commit c50db14 into iotaledger:main Jun 23, 2022
@DaughterOfMars DaughterOfMars deleted the main-add-stream branch July 14, 2022 15:15
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

Successfully merging this pull request may close these issues.

Tracking Issue - Actor improvements
3 participants