1
0
Fork 0
forked from wry/wry

io_uring: allow manually cancelling tasks

This commit is contained in:
Julian Orth 2024-09-07 17:09:12 +02:00
parent 6cbf6119de
commit 5b36980e72

View file

@ -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 {