fix(napi): tokio runtime shutdown at exit#3028
fix(napi): tokio runtime shutdown at exit#3028bmjhversteeg wants to merge 1 commit intonapi-rs:mainfrom
Conversation
Signed-off-by: Bart Versteeg <[email protected]>
How to use the Graphite Merge QueueAdd the label ready-to-merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
WalkthroughRemoved the public Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
🔇 Additional comments (1)
Comment |
|
Using |
|
We can use this strategy on the |
This is a proposal to fix #2970
I found that mmastrac/rust-ctor#304 (comment) and https://github.com/mmastrac/rust-ctor/wiki/FAQ:-Life%E2%80%90before-and-life%E2%80%90after-main#important-considerations, discourage using
#[dtor]to cleanup tokio runtime, which might explain the issue.Disclaimer: I'm not very familiar with
napi-rs. I'm not sure why the secondthread_cleanup()was added in #2850 and whether or not it was an integral part of fixing that particular issue.Summary by CodeRabbit
Breaking Changes
ctormacro from the bindgen runtime module.Refactor
✏️ Tip: You can customize this high-level summary in your review settings.