async-global-executor
async-global-executor copied to clipboard
A global executor built on top of async-executor and smol
The current method of manually defining `{crate-name}-crate` and then specifying `package = {crate-name}` is rather redundant in comparison.
This would raise MSRV to 1.70. Found an issue mentioned MSRV, but did not find a clear MSRV policy. btw Found the `once_cell` dependency in `async-std` as well.
I found that the tokio runtime is always created through `Runtime::new()`, so it is impossible to modify the number of worker threads. I hope there is a way to modify...
The [`StaticExecutor`](https://github.com/smol-rs/async-executor/blob/master/src/static_executors.rs#L112-L128) type introduced in [[email protected]](https://github.com/smol-rs/async-executor/releases/tag/v1.12.0) seems well suited for the async-global-executor use case, so this PR adopts that optimization. My initial intent was also to adopt [`StaticLocalExecutor`](https://github.com/smol-rs/async-executor/blob/master/src/static_executors.rs#L297-L309) but I'm...