From 5b36980e72669b4850fa0c06f18597dbc85a1b30 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sat, 7 Sep 2024 17:09:12 +0200 Subject: [PATCH] io_uring: allow manually cancelling tasks --- src/io_uring.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/io_uring.rs b/src/io_uring.rs index 23b8749d..f5bd6b68 100644 --- a/src/io_uring.rs +++ b/src/io_uring.rs @@ -228,6 +228,11 @@ impl IoUring { self.ring.kill(); res } + + #[expect(dead_code)] + pub fn cancel(&self, id: IoUringTaskId) { + self.ring.cancel_task(id); + } } struct IoUringData {