Skip to content

Adds spawn_in_scope #4394

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: v0.6
Choose a base branch
from
Open

Adds spawn_in_scope #4394

wants to merge 1 commit into from

Conversation

jprider63
Copy link

This adds the function spawn_in_scope which spawns a future with the scope provided by the user. I needed this since I have a Signal at a given scope (created with Signal::new_maybe_sync_in_scope_with_caller) that is periodically updated by an associated future. spawn_forever did not work since the root scope in the future would attempt to update the subscope's Signal.

Note: This PR is on the v0.6 branch so you might want to upstream it to main too.

@jprider63 jprider63 requested a review from a team as a code owner July 8, 2025 16:52
jprider63 added a commit to jprider63/ossa that referenced this pull request Aug 1, 2025
jprider63 added a commit to jprider63/ossa that referenced this pull request Aug 3, 2025
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.

1 participant