prefer_smol in redis::aio - Rust
Description: Mark Smol as the preferred runtime.

Skip to main content

## prefer_smol

# Function prefer_smol

Source

    pub fn prefer_smol() -> Result<(), RedisError>

Available on crate features `smol-comp` and `tokio-comp` and `aio` only.
Expand description

Mark 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.