Skip to content
/ extask Public

small but developer friendly tasks/futures library for elixir

Notifications You must be signed in to change notification settings

d0rc/extask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extasks

Main purpose of this small library to allow starting tasks in one process and handle results in different process. Also, it'll let you know if task failed to execute, by returning different codes from await/1 and await/2:

Possible outcomes are:

case await(task) do
	:timeout -> 
		IO.puts "Timed out waiting for task to finish/reply"
	{:result, data} -> 
		IO.puts "Task finished fine with result: #{inspect data}"
	{:exit, reason} -> 
		IO.puts "Task finished with no result, exit reason is: #{inspect reason}"
end

TBD: - allow task to be started with retry_count; - allow task to be killed if it fails to deliver results in given timeout.

About

small but developer friendly tasks/futures library for elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages