class Async::Stop::Cause
Represents the source of the stop operation.
def self.backtrace
def self.backtrace caller_locations(2..-1) end
def self.backtrace
def self.backtrace caller(2..-1) end
def self.for(message = "Task was stopped")
@parameter message [String] The error message.
Create a new cause of the stop operation, with the given message.
def self.for(message = "Task was stopped") instance = self.new(message) instance.set_backtrace(self.backtrace) return instance end