fix comma placement typo

This commit is contained in:
Jesse J. Anderson
2017-02-07 22:15:57 -08:00
parent bceeac5bf0
commit dafbfa6daa

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)