new(args, &block)
Create a promise to do the chore specified by the block.
# File lib/rake/promise.rb, line 16 def initialize(args, &block) @mutex = Mutex.new @result = NOT_SET @error = NOT_SET @args = args @block = block end