Function submit

Source
pub async fn submit<T: OpCode + 'static>(op: T) -> BufResult<usize, T>
Expand description

Submit an operation to the current runtime, and return a future for it.

§Panics

This method doesn’t create runtime. It tries to obtain the current runtime by Runtime::with_current.