Skip to main content

Module async_hook

Module async_hook 

Source
Expand description

Hook trait for the optional async runtime (cljrs-async).

Core crates never import Tokio. When cljrs-async is linked, it calls GlobalEnv::set_async_runtime to install itself. The evaluator then delegates ^:async fn dispatch through this trait.

Traitsยง

AsyncRuntime
Interface implemented by cljrs-async and registered with GlobalEnv.