tokio-rs / tokio-uring

An io_uring backed runtime for Rust
MIT License
1.11k stars 117 forks source link

Support for IO_LINK feature #289

Open SidongYang opened 8 months ago

SidongYang commented 8 months ago

Hi, we use tokio uring well in our work. and also we need IO_LINK feature in tokio uring. I agree that we should consider API design for the link feature. #86

I wrote some example code that support flags in write_at, read_at API. It just add [read|write]_at_with_flags that add flags for original code. Also we need to unsubmitted read API for await in async task. https://github.com/SidongYang/tokio-uring/pull/1

But I'm not sure that this code is good way to support flags. In example, it creates async tasks for await multiple events. I think it's little bad for tokio uring that uses single threaded.