3 ms·
Well, here's the actual wait method: https://github.com/alexcrichton/futures-rs/blob/master/src/future/mod.rs#L270-L274 https://github.com/alexcrichton/futures
by pimeys 10y ago
Well, here's the actual wait method:
https://github.com/alexcrichton/futures-rs/blob/master/src/future/mod.rs#L270-L274 https://github.com/alexcrichton/futures-rs/blob/master/src/f...
Of course depending on your executor, the IO can be async or sync.
- fooyc 10y agoI can see a LOT of overhead here. Am I wrong ? Have you ever ran a benchmark of a wait(async_read()) compared to just sync_read() ?