io_uring: allow manually cancelling tasks
This commit is contained in:
parent
6cbf6119de
commit
5b36980e72
1 changed files with 5 additions and 0 deletions
|
|
@ -228,6 +228,11 @@ impl IoUring {
|
||||||
self.ring.kill();
|
self.ring.kill();
|
||||||
res
|
res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[expect(dead_code)]
|
||||||
|
pub fn cancel(&self, id: IoUringTaskId) {
|
||||||
|
self.ring.cancel_task(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct IoUringData {
|
struct IoUringData {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue