Easy to do with `std / tasks`. For example:
    
    
    import std / tasks
    
    proc hello(a: int) = echo a
    proc other(s: string) = echo s
    
    let myTasks = @[toTask(hello 3), toTask(other "abc)]
    for t in myTasks:
      invoke(t)
    
    
    
    Run

Reply via email to