Skip to content

add Executor::run_with_local - #6

Closed
Keruspe wants to merge 1 commit into
smol-rs:masterfrom
Keruspe:run-with-local
Closed

Keruspe wants to merge 1 commit into
smol-rs:masterfrom
Keruspe:run-with-local

Conversation

@Keruspe

@Keruspe Keruspe commented Jul 31, 2020

Copy link
Copy Markdown
Contributor

Alternative to #3

This adds a run_with_local method to Executor, which creates a LocalExecutor and runs it alongside the main one, to allow !Send futures to be spawned.

Signed-off-by: Marc-Antoine Perennou <[email protected]>
@ghost

ghost commented Aug 29, 2020

Copy link
Copy Markdown

Thanks for the PR! But, I think this change is not applicable anymore because we don't have Task::local() anymore, so I'm going to close. Sorry! I feel like I'm closing so many PRs that other people have put effort into. :(

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant