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

use runtime handle for Server::run_server_on_runtime and http::run_http_server instead of runtime #416

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbusoft
Copy link
Contributor

@cbusoft cbusoft commented Nov 29, 2024

closes #415

Using a tokio::runtime::Handle prevents the runtime from being dropped in the function run_server_on_runtime when block is set to false. Currently the runtime aborts all tasks, since the runtime is dropped. Details see #415. Additionally it allows the use of Handle::current() instead of requiring the user to create the runtime explicitly.

Copy link

codecov bot commented Nov 29, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

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.

Server: Problem with consuming behaviour of Server::run_server_on_runtime
1 participant