Expand description
std.task thin adapter.
Bridge implementation moved to the mlua-batteries crate
(mlua_batteries::task). This module only resolves the host’s
environment variables into a mlua_batteries::task::TaskConfig
before delegating to mlua_batteries::task::register_with.
§Environment variables
AGENT_BLOCK_TASK_DRIVER—async_fn(default),async, orcoroutine. Selects the default driver used bystd.task.spawnwhen the caller does not passopts.driver. Unparseable values silently fall back toasync_fn(mirrorsAGENT_BLOCK_TASK_GRACE_MS).AGENT_BLOCK_TASK_GRACE_MS— default grace window (cooperative cancel → hard abort) used bystd.task.with_timeoutwhen the caller does not passopts.grace_ms. Default: 1000 ms. Set to 0 for strict / immediate-abort semantics. Parsing is delegated tocrate::bridge::config::task_grace_ms, whichtracing::warn!s on unparseable values and falls back to the default.