<commit_before>mod smoke;
use smoke::async::Task;
use std::thread;
use std::time::Duration;

fn add(a: i32, b: i32) -> Task<i32, ()> {
  Task::new(move || {
    thread::sleep(Duration::from_secs(1));
    Ok(a + b)
  })
}

fn main() {
   let result = Task::all(vec![
     add(10, 20),
     add(20, 30),
     add(30, 40)
   ]).sync().unwrap(); 
   
   // [30, 50, 70]
   println!("{:?}", result); 
}<commit_msg>commit<commit_after>mod smoke;

#[allow(unused_imports)]
use smoke::async::{Task, Stream};

fn main() {
  
}
{'fraction_non_alphanumeric': 0.23017408123791103, 'fraction_numerical': 0.048355899419729204, 'mean_word_length': 3.584070796460177, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2673479', 'n_tokens_mistral': 229, 'n_tokens_neox': 212, 'n_words': 43}