allo-media/tech-blog

Add an article to explain how to parallelize task

Opened this issue · 0 comments

parallel : (Result x a -> msg) -> List (Task x a) -> Cmd msg
parallel tagger tasks =
    tasks
        |> List.map (Task.attempt tagger)
        |> Cmd.batch