pub fn set_receive_timeout(timeout: Duration)Expand description
Sets the maximum wait used by the next native receive call.
The process-wide default is one second. Changing it does not interrupt a receive already in progress and does not set a request or operation deadline. Long waits can increase last-client shutdown latency; very short waits increase idle polling. Zero is accepted but can busy-poll while clients are registered.
ยงExamples
use std::time::Duration;
use td_client::set_receive_timeout;
set_receive_timeout(Duration::from_millis(100));