Skip to main content

Module lazy_init

Module lazy_init 

Source
Expand description

Lazy initialization for expensive subsystems (#50).

Uses tokio::sync::OnceCell to defer initialization of heavy subsystems (LSP, MCP, embeddings) until first use rather than at startup.

Structs§

LazySubsystem
A lazily-initialized subsystem value.
SyncLazy
A synchronous lazy-init wrapper using std::sync::OnceLock.

Functions§

create_lazy_subsystems
Create standard lazy wrappers for LSP, MCP, and embeddings.

Type Aliases§

LazyEmbeddings
Lazy-init wrapper for the embeddings subsystem.
LazyLsp
Lazy-init wrapper for the LSP subsystem.
LazyMcp
Lazy-init wrapper for the MCP subsystem.