async-global-executor icon indicating copy to clipboard operation
async-global-executor copied to clipboard

feat: use `async_executor::StaticExecutor`

Open jbr opened this issue 1 year ago • 0 comments

The StaticExecutor type introduced in [email protected] seems well suited for the async-global-executor use case, so this PR adopts that optimization.

My initial intent was also to adopt StaticLocalExecutor but I'm unclear on the intended usage of that type[^1] and so it was left for future work.

[^1]: StaticLocalExecutor::spawn requires a 'static thread local lifetime, but LocalKey intentionally avoids surfacing 'static lifetimes.

Thanks!

jbr avatar May 28 '24 19:05 jbr