class Airbrake::Promise

def reject(reason = 'rejected')

Experimental RBS support (using type sampling data from the type_fusion project).

def reject: (?String reason) -> untyped

This signature was generated using 3 samples from 1 application.

Returns:
  • (self) -

Parameters:
  • reason (String) --
def reject(reason = 'rejected')
  @mutex.synchronize do
    @value['error'] = reason
    @on_rejected.each { |callback| callback.call(reason) }
  end
  self
end