Skip to content

propagate errors from tokio::tasks and make am windows compatible - #36

Merged
mellowagain merged 2 commits into
mainfrom
select+exe
Jun 20, 2023
Merged

mellowagain merged 2 commits into
mainfrom
select+exe

Conversation

@mellowagain

Copy link
Copy Markdown
Contributor

fixes #34
fixes #35

biased;

Ok(())
_ = tokio::signal::ctrl_c() => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is already working fine in the current version, which also propagates the sigint to the prometheus process. So we can probably get rid of this. (though that was in the tokio::spawn situation)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is cuz select will abort all other tasks when one finishes, so we want to await the ctrl c signal so we have correct shutting down

@mellowagain
mellowagain merged commit 2589d7a into main Jun 20, 2023
@mellowagain
mellowagain deleted the select+exe branch June 20, 2023 12:12
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.

windows compatibility Implement proper error propagation

2 participants