pub type VmAsyncBuiltinFn = Arc<dyn Fn(AsyncBuiltinCtx, Vec<VmValue>) -> Pin<Box<dyn Future<Output = Result<VmValue, VmError>> + Send>> + Send + Sync>;Expand description
An async builtin function for the VM.
Receives an explicit crate::vm::AsyncBuiltinCtx handle (threaded by the
dispatch loop + the #[harn_builtin] macro) so handlers mint child VMs and
forward output through the ctx they were given instead of relying on hidden
task state.
Aliased Typeยง
pub struct VmAsyncBuiltinFn { /* private fields */ }