class Async::Task

def annotate(annotation, &block)

@parameter annotation [String] The description to annotate the task with.

This will internally try to annotate the fiber if it is running, otherwise it will annotate the task itself.

Annotate the task with a description.
def annotate(annotation, &block)
	if @fiber
		@fiber.annotate(annotation, &block)
	else
		super
	end
end