Class: Async::Stop::Later

Inherits:
Object
  • Object
show all
Defined in:
lib/async/task.rb

Instance Method Summary collapse

Constructor Details

#initialize(task) ⇒ Later

Returns a new instance of Later.



18
19
20
# File 'lib/async/task.rb', line 18

def initialize(task)
	@task = task
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/async/task.rb', line 22

def alive?
	true
end

#transferObject



26
27
28
# File 'lib/async/task.rb', line 26

def transfer
	@task.stop
end