Function tikv_util::stream::block_on_external_io[][src]

pub fn block_on_external_io<F: Future>(f: F) -> F::Output

Runs a future on the current thread involving external storage.

Caveat

This function must never be nested. The future invoked by block_on_external_io must never call block_on_external_io again itself, otherwise the executor’s states may be disrupted.

This means the future must only use async functions.