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

ref(system): Spawn with custom task ID #4262

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open

ref(system): Spawn with custom task ID #4262

wants to merge 31 commits into from

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Nov 18, 2024

Allow spawning a task with a service name:

relay_system::spawn(TaskId::for_service::<MyService>(), async {});

This is used when spanning a service.

#skip-changelog

@jjbayer jjbayer marked this pull request as ready for review November 18, 2024 12:34
@jjbayer jjbayer requested a review from a team as a code owner November 18, 2024 12:34
relay-system/src/runtime.rs Outdated Show resolved Hide resolved
relay-system/src/runtime.rs Outdated Show resolved Hide resolved
relay-system/src/service.rs Outdated Show resolved Hide resolved
@jjbayer jjbayer requested a review from Dav1dde November 18, 2024 13:22
Base automatically changed from joris/join to master November 19, 2024 07:22
Copy link
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

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.

2 participants