Merge pull request #168 from jessejanderson/master

Fix comma placement typo
This commit is contained in:
Jay Hayes
2017-02-08 09:05:26 -06:00
committed by GitHub

View File

@@ -41,7 +41,7 @@ defmodule Tasks do
end end
koan "You can yield to multiple tasks at once and extract the results" do koan "You can yield to multiple tasks at once and extract the results" do
squares = [1 ,2 ,3 ,4] squares = [1, 2, 3, 4]
|> Enum.map(fn(number) -> Task.async(fn -> number * number end) end) |> Enum.map(fn(number) -> Task.async(fn -> number * number end) end)
|> Task.yield_many(100) |> Task.yield_many(100)
|> Enum.map(fn({_task,{:ok, result}}) -> result end) |> Enum.map(fn({_task,{:ok, result}}) -> result end)