[][src]Function rettle::brewery::make_tea

pub fn make_tea<T: Send + 'static>(
    tea_batch: Vec<T>,
    recipe: Arc<RwLock<Vec<Box<dyn Ingredient<T> + Send + Sync>>>>
)

This function is passed to the brewer via a thread for it to process the batch of Tea.

Arguments

  • tea_batch - Array of Tea structs to be processed
  • recipe - read only clone of recipe containing all steps