Function tokio_uring::no_op

source ·
pub async fn no_op() -> Result<()>
Expand description

The simplest possible operation. Just posts a completion event, nothing else.

This has a place in benchmarking and sanity checking uring.

Examples

fn main() -> Result<(), Box<dyn std::error::Error>> {
    tokio_uring::start(async {
        // Place a NoOp on the ring, and await completion event
        tokio_uring::no_op().await?;
        Ok(())
    })
}