async-compat
async-compat copied to clipboard
Only create/enter new runtime if one does not already exist?
From my reading of the code, Compat futures will unconditionally create and enter a new single-threaded tokio runtime. This seems potentially inefficient if a tokio runtime (maybe a multi-threaded one) already exists.
Would it be possible to check if a runtime already exists before entering a new one?
BTW, #30 might be a solution for #2 as well, depending on the exact use case.