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

actix-rt-less #408

Merged
merged 12 commits into from Nov 4, 2021
Merged

actix-rt-less #408

merged 12 commits into from Nov 4, 2021

Conversation

robjtede
Copy link
Member

@robjtede robjtede commented Nov 2, 2021

PR Type

Feature

PR Checklist

Check your PR fulfills the following:

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt

Overview

Allow running under #[tokio::main]. Heavily based on #266. Thanks to @fakeshadow for the previous work on this feature.

@robjtede robjtede marked this pull request as ready for review November 3, 2021 15:26
System::set_current(sys);
}

let rt = tokio::runtime::Builder::new_current_thread()
Copy link
Contributor

@fakeshadow fakeshadow Nov 4, 2021

Choose a reason for hiding this comment

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

We can pass an Option<tokio::runtime::Handle> to worker and block_on it if possible.

@fakeshadow
Copy link
Contributor

LGTM

@robjtede robjtede merged commit 5b537c7 into master Nov 4, 2021
@robjtede robjtede deleted the rtless-basic branch November 4, 2021 20:30
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.

None yet

2 participants