Skip to main content

recognize_producer_consumer

Function recognize_producer_consumer 

Source
pub fn recognize_producer_consumer(
    stmts: &[Stmt<'_>],
    interner: &Interner,
) -> Option<ConcurrencySpec>
Expand description

Recognize the producer/consumer pipe pattern and extract its ConcurrencySpec, or None if the program is not this shape (the caller then falls back to the sound single-core refusal).