Function tikv_kv::with_tls_engine[][src]

pub unsafe fn with_tls_engine<E: Engine, F, R>(f: F) -> R where
    F: FnOnce(&E) -> R, 

Execute the closure on the thread local engine.

Safety

Precondition: TLS_ENGINE_ANY is non-null.