pub type AsyncModuleFn = Arc<dyn Fn(&[ValueWord]) -> Pin<Box<dyn Future<Output = Result<ValueWord, String>> + Send>> + Send + Sync>;Expand description
An async module function callable from Shape.
Returns a boxed future that resolves to a ValueWord result. The VM executor awaits this using the current tokio runtime.
Note: async functions do not receive a ModuleContext because the context
borrows from the VM and cannot be sent across await points.
Aliased Typeยง
pub struct AsyncModuleFn { /* private fields */ }