Skip to main content

CandidateFuture

Type Alias CandidateFuture 

Source
pub type CandidateFuture = Pin<Box<dyn Future<Output = SourceResult<CandidateBatch>> + Send>>;
Expand description

One-shot async future a source returns when the candidate set requires off-thread work (LSP request, large directory walk, etc.). 'static + Send because the source extracted everything it needs from the context during the synchronous init call and moved it into the closure.

Aliased Typeยง

pub struct CandidateFuture { /* private fields */ }