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

Find current runtime #321

Open
nihohit opened this issue Nov 11, 2024 · 0 comments
Open

Find current runtime #321

nihohit opened this issue Nov 11, 2024 · 0 comments
Labels
F-feature-request feature request

Comments

@nihohit
Copy link

nihohit commented Nov 11, 2024

Is your feature request related to a problem? Please describe.
I would like to know whether there's a runtime currently set, or whether a spawn/block_on will cause a runtime to be created. Additionally, if a runtime is present, I'd like to know if it's shutting down or not.

Describe the solution you'd like
a static function that returns an Option<RuntimeInfo>, where RuntimeInfo contains pertinent information, and is None if no runtime is set.

@nihohit nihohit added the F-feature-request feature request label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-feature-request feature request
Projects
None yet
Development

No branches or pull requests

1 participant