Skip to content

Commit a6869e2

Browse files
authored
feat(driver): make Runtime::submit public (#722)
1 parent fbae5ae commit a6869e2

File tree

1 file changed

+1
-13
lines changed
  • compio-runtime/src/runtime

1 file changed

+1
-13
lines changed

compio-runtime/src/runtime/mod.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Runtime {
280280
/// Submit an operation to the runtime.
281281
///
282282
/// You only need this when authoring your own [`OpCode`].
283-
fn submit<T: OpCode + 'static>(&self, op: T) -> Submit<T> {
283+
pub fn submit<T: OpCode + 'static>(&self, op: T) -> Submit<T> {
284284
Submit::new(self.clone(), op)
285285
}
286286

@@ -601,18 +601,6 @@ pub fn submit<T: OpCode + 'static>(op: T) -> Submit<T> {
601601
Runtime::with_current(|r| r.submit(op))
602602
}
603603

604-
/// Submit an operation to the current runtime, and return a future for it with
605-
/// flags.
606-
///
607-
/// ## Panics
608-
///
609-
/// This method doesn't create runtime. It tries to obtain the current runtime
610-
/// by [`Runtime::with_current`].
611-
#[deprecated(since = "0.11.0", note = "use `submit(op).with_extra()` instead")]
612-
pub fn submit_with_extra<T: OpCode + 'static>(op: T) -> Submit<T, Extra> {
613-
Runtime::with_current(|r| r.submit(op).with_extra())
614-
}
615-
616604
/// Register file descriptors for fixed-file operations with the current
617605
/// runtime's io_uring instance.
618606
///

0 commit comments

Comments
 (0)