Skip to main content

load_instructions_async

Function load_instructions_async 

Source
pub async fn load_instructions_async(
    base_dir: PathBuf,
    provider_kinds: Vec<ProviderKind>,
    explicit_files: Vec<PathBuf>,
    auto_detect: bool,
) -> Vec<InstructionBlock>
Expand description

Async wrapper around load_instructions that offloads filesystem I/O to the tokio blocking thread pool.

Returns an empty Vec and logs an error if the blocking task panics.