Merge pull request #109 from iamvery/whitespace

Fix whitespace in tasks koan
This commit is contained in:
Uku Taht
2016-05-05 11:37:50 +01:00

View File

@@ -37,12 +37,12 @@ defmodule Tasks do
end
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)
|> Task.yield_many(100)
|> Enum.map(fn({_task,{:ok, result}}) -> result end)
assert squares == ___
assert squares == ___
end
def do_other_stuff do