Skip to main content

DEFAULT_MAX_PENDING_ASYNC

Constant DEFAULT_MAX_PENDING_ASYNC 

Source
pub const DEFAULT_MAX_PENDING_ASYNC: Option<usize>;
Expand description

Default cap on the number of in-flight DispatchResult::Async commands. Some(10_000) rejects further async dispatches with OpError("pending-async limit exceeded") once the cap is hit - protects against a runaway component returning Async(_) in a tight loop. None disables the cap.