Method: Object#with_large_stack

Defined in:
lib/droiuby/support/thread.rb

#with_large_stack(stack_size_kb = 64, &block) ⇒ Object



2
3
4
5
6
7
# File 'lib/droiuby/support/thread.rb', line 2

def with_large_stack(stack_size_kb = 64, &block) 
  result = nil 
  t = Thread.with_large_stack(&proc{result = block.call}) 
  t.join 
  result 
end