pub fn submit<T: OpCode + 'static>(
op: T,
) -> impl Future<Output = 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
.