Fn

Function Fn 

Source
pub async fn Fn(__arg0: Struct)
Expand description

Asynchronously processes entries to generate summaries and outputs the results.

This function performs the following steps:

  1. Filters and processes the provided entries based on the given pattern and separator.
  2. Spawns asynchronous tasks to generate summaries for each entry.
  3. Collects the results and outputs them.

§Argument

  • Option - A struct containing the following fields:
    • Entry: A vector of vectors, where each inner vector contains the components of a file path.
    • Separator: A character used to join the components of the file path.
    • Pattern: A string pattern to match against the last element of each entry.

§Example

let options = Option {
	Entry:vec![vec!["path".to_string(), "to".to_string(),
"file.git".to_string()]],
	Separator:'/',
	Pattern:".git".to_string(),
};
Fn(options).await;

§Errors

This function will log errors if it fails to generate summaries or send results.