tokio-rs / turmoil

Add hardship to your tests
MIT License
792 stars 50 forks source link

Add try_write to TcpStream #176

Closed brandonpike closed 4 months ago

brandonpike commented 4 months ago

Add TcpStream::try_write() and WriteHalf::try_write().

These allow for a result-based synchronous write attempt.