Skip to content

quixoten/queue_to_the_future

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Queue to the Future!

An easy way to create asynchronous execution paths in an unobtrusive way. Queue to the Future uses a managed pool of workers to keep overhead to a minimum.

Synopsis

require "queue_to_the_future"

# returns immediately
result = Future("list", "of", "args") do |*args|
  sleep(1)
  args.join(" ")
end

# blocks until completed
puts result                    #=> "list of args"

Copyright © 2009-2010 Devin Christensen. See LICENSE for details.

About

Managed futures for Ruby.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages