Async Errors (RS101)
Back to Error Catalog | Spec: async.md
Enforcement: rsc lint (rs edition only).
RS101: Unbounded async function
error[RS101]: async functions must have a deadline in rs edition
help: add a deadline: async(Duration::from_millis(100)) fn unbounded()
help: or opt out: #[allow(rs::unbounded_async)]
In edition = "rs", every async function must have an explicit deadline. An async function without a deadline can block indefinitely — a liveness failure in OS kernels and consensus nodes.
Inside cell! macro: use async(Duration) fn syntax.
Outside cells: use #[bounded_async(Duration)] attribute macro.
Fix
// Inside cell!:
pub async
// Outside cell!:
async
// Explicit opt-out (must justify):
async