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.



33
34
35
# File 'lib/async/task.rb', line 33

def initialize(task)
	@task = task
end

Instance Method Details

#alive?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/async/task.rb', line 37

def alive?
	true
end

#resumeObject



41
42
43
# File 'lib/async/task.rb', line 41

def resume
	@task.stop
end