-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(cli): enable tokio handle in CliRunner
#18018
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
base: main
Are you sure you want to change the base?
Conversation
CliRunner
CliRunner
CliRunner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, only a few style nits
crates/cli/runner/src/lib.rs
Outdated
/// A tokio runtime or handle. | ||
#[derive(Debug)] | ||
enum RuntimeOrHandle { | ||
/// Owned runtime that can be used for blocking operations | ||
Runtime(Runtime), | ||
/// Handle to an existing runtime | ||
Handle(Handle), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we move this end of file so that the first type remains the pub one?
CodSpeed Performance ReportMerging #18018 will not alter performanceComparing Summary
|
Closes #17965.