Skip to content

"inverted control" mode through Proc::instance #772

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mariusae
Copy link
Member

@mariusae mariusae commented Aug 6, 2025

Summary:
Adds Proc::instance() which returns an actor instance and its corresponding handler. This allows the user to create a regular actor without any message handlers. The returned Instance provides all the normal capabilities, including sending and receiving messages, being able to spawn and manage child actors, etc.

This is the foundation for a kind of "script mode" actor.

Reviewed By: shayne-fletcher

Differential Revision: D79685752

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 6, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79685752

Summary:

Adds Proc::instance() which returns an actor instance and its corresponding handler. This allows the user to create a regular actor without any message handlers. The returned `Instance` provides all the normal capabilities, including sending and receiving messages, being able to spawn and manage child actors, etc.

This is the foundation for a kind of "script mode" actor.

Reviewed By: shayne-fletcher

Differential Revision: D79685752
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79685752

mariusae added a commit to mariusae/monarch-1 that referenced this pull request Aug 6, 2025
Summary:

Adds Proc::instance() which returns an actor instance and its corresponding handler. This allows the user to create a regular actor without any message handlers. The returned `Instance` provides all the normal capabilities, including sending and receiving messages, being able to spawn and manage child actors, etc.

This is the foundation for a kind of "script mode" actor.

Reviewed By: shayne-fletcher

Differential Revision: D79685752
mariusae added a commit to mariusae/monarch-1 that referenced this pull request Aug 6, 2025
Summary:

Adds Proc::instance() which returns an actor instance and its corresponding handler. This allows the user to create a regular actor without any message handlers. The returned `Instance` provides all the normal capabilities, including sending and receiving messages, being able to spawn and manage child actors, etc.

This is the foundation for a kind of "script mode" actor.

Reviewed By: shayne-fletcher

Differential Revision: D79685752
@facebook-github-bot
Copy link
Contributor

@mariusae has imported this pull request. If you are a Meta employee, you can view this in D79755962.

facebook-github-bot pushed a commit that referenced this pull request Aug 6, 2025
Summary:
X-link: #772

Adds Proc::instance() which returns an actor instance and its corresponding handler. This allows the user to create a regular actor without any message handlers. The returned `Instance` provides all the normal capabilities, including sending and receiving messages, being able to spawn and manage child actors, etc.

This is the foundation for a kind of "script mode" actor.

Reviewed By: shayne-fletcher

Differential Revision: D79685752

fbshipit-source-id: ae9ed96cd6ba8cc49c4144b85004f850cc597472
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants