You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
I would want the spawn and spawn_blocking to return a spawn handle or something equivalent and as substrate uses tokio quite extensively looks reasonable to return tokio::task::JoinHandle instead.
niklasad1
added
A3-in_progress
Pull request is in progress. No review needed at this stage.
B0-silent
Changes should not be mentioned in any release notes
C1-low
PR touches the given topic and has a low impact on builders.
D3-trivial 🧸
PR contains trivial changes in a runtime directory that do not require an audit
labels
Apr 27, 2023
I can add the oneshot stuff and you can complain in my other pr :D
Let's try that for now :P
yeah, but I didn't to make code so verbose with oneshot's when tokio spawn already has it..
If we add the JoinHandle, I would still make it generic. Aka something that wraps a Box<Future>. I know that we are currently using Tokio, but it doesn't leak that much to the internals right now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A3-in_progressPull request is in progress. No review needed at this stage.B0-silentChanges should not be mentioned in any release notesC1-lowPR touches the given topic and has a low impact on builders.D3-trivial 🧸PR contains trivial changes in a runtime directory that do not require an audit
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I would want the
spawnandspawn_blockingto return a spawn handle or something equivalent and as substrate uses tokio quite extensively looks reasonable to returntokio::task::JoinHandleinstead.Needed by #13992
No real code changes rather than tests and benchmarks