View Source Iconic (Iconic v0.1.2)
Application module for iconic, a Task based icon fetching application.
examples
Examples
iex> Task.await(Iconic.get("www.foo.com"))
iex> Enum.to_list(Iconic.mget(["www.foo.com", "www.bar.com", "www.baz.com"]))
Link to this section Summary
Functions
Returns a Stream that yields a list of {task_status, [Icon.Parse.Icon.t()]}
when all the icon fetching tasks are completed.
Callback implementation for Application.start/2.
Link to this section Functions
Returns a Task that yields a list of Icon.Parse.Icon.t() when it's completed.
examples
Examples
iex> task = Iconic.get("www.foo.com")
iex> Task.await(task)
@spec mget( String.t(), keyword() ) :: Enumerable.t()
Returns a Stream that yields a list of {task_status, [Icon.Parse.Icon.t()]}
when all the icon fetching tasks are completed.
options
Options
:max_concurrency- sets the maximum number of tasks to run at the same time. Defaults toSystem.schedulers_onlines/0.:timeout- the maximum amount of time to wait (in milliseconds) without receiving a task reply (across all running tasks). Defaults to5000.
examples
Examples
iex> tasks = Iconic.mget(["www.foo.com", "www.bar.com", "www.baz.com"])
iex> Enum.to_list(tasks)
Callback implementation for Application.start/2.