Skip to content

ria-com/elixir-task-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ria.Task

Ria.Task - wrapper for Elixir.Task

Task.await does not wait over timeout and does not throw exeptions

alias Ria.Task
# ...
task = Task.async(fn -> do_some_work() end)
# ...
res = Task.await(task, 100)

Installation

def deps do
  [{:ria_task, git: "https://github.com/ria-com/elixir-task-wrapper.git"}]
end

Testing

[elixir-task-wrapper]# mix test