Skip to main content

DEFAULT_PREFETCH_TIMEOUT

Constant DEFAULT_PREFETCH_TIMEOUT 

Source
pub const DEFAULT_PREFETCH_TIMEOUT: Duration;
Expand description

Default reader-side prefetch wait timeout. A read that has to wait for the worker longer than this surfaces io::ErrorKind::TimedOut instead of hanging forever; useful when the inner source has stalled (e.g. a frozen HTTP connection).