static public Method

Continuation.create(*args, &block)

There's no documentation for this item.

Source Code

# File binding_of_caller.rb, line 7
def Continuation.create(*args, &block) # :nodoc:
  cc = nil; result = callcc {|c| cc = c; block.call(cc) if block and args.empty?}
  result ||= args
  return *[cc, *result]
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.