AsyncSourceAsyncStopLater

class Later

Used to defer stopping the current task until later.

Definitions

def initialize(task)

Create a new stop later operation.

Signature

parameter task Task

The task to stop later.

Implementation

def initialize(task)
	@task = task
end

def alive?

Signature

returns Boolean

Whether the task is alive.

Implementation

def alive?
	true
end

def transfer

Transfer control to the operation - this will stop the task.

Implementation

def transfer
	@task.stop
end

Discussion