Registry / async / async-global-executor

async-global-executor

JSON →
library3.1.0rscratesunverified

A global executor built on top of async-executor and async-io

# Cargo.toml [dependencies] async-global-executor = "3.1.0"
INSTALL
IMPORT
SIG · ASYNC-GLOBAL-EXECU
A
async-global-executor
asyncrustv3.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

block_on
use async_global_executor::block_on;

Run an async function with the global executor

use async_global_executor::block_on; async fn hello() -> String { "Hello, world!".to_string() } fn main() { let result = block_on(hello()); println!("{}", result); }
Debug
Known issues
gotchaRequires the 'async-executor' feature for full functionality
fix
Add async-global-executor = { version = "3", features = ["async-executor"] } to Cargo.toml
affects: >=3.0.0
Upgrade
Version history
3.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
40
Perplexity
1
Resources
async-global-executor — cargo add async-global-executor · libregistry