Method: Thread::Pool::Task#initialize

Defined in:
lib/thread/pool.rb

#initialize(pool, *args, &block) ⇒ Task

Create a task in the given pool which will pass the arguments to the block.



29
30
31
32
33
34
35
36
37
38
# File 'lib/thread/pool.rb', line 29

def initialize(pool, *args, &block)
	@pool      = pool
	@arguments = args
	@block     = block

	@running    = false
	@finished   = false
	@timedout   = false
	@terminated = false
end