Skip to main content

write_within

Function write_within 

Source
async fn write_within<T, F>(bound: Duration, write: F) -> Result<T>
where F: Future<Output = Result<T>>,
Expand description

Wait on one socket write under bound, failing as WriteStalled when it does not complete in time.