This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def crawl(config) do | |
config | |
|> Enum.map(&Task.Supervisor.async(TaskModule, fn() -> check(&1) end)) | |
|> Enum.map(&Task.await(&1)) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Util.Time do | |
@moduledoc """ | |
Time helper functions. | |
""" | |
@doc """ | |
Get current time as string using Erlangs calendar module. | |
""" | |
@spec now_to_string() :: String.t | |
def now_to_string() do |