pub fn prefer_async_std() -> Result<(), RedisError>
Available on crate feature
aio
only.Expand description
Mark async-std compliant runtimes, such as smol, as the preferred runtime.
If the function returns Err
, another runtime preference was already set, and won’t be changed.
Call this function if the application doesn’t use multiple runtimes,
but the crate is compiled with multiple runtimes enabled, which is a bad pattern that should be avoided.