pub async fn Fn(__arg0: Struct)Expand description
Asynchronously processes entries to generate summaries and outputs the results sequentially.
This function performs the following steps:
- Filters and processes the provided entries based on the given pattern and separator.
- Spawns asynchronous tasks to generate summaries for each entry.
- 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.