class Airbrake::Promise

def resolve(reason = 'resolved')

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

def resolve: (?Symbol reason) -> Airbrake::Promise

This signature was generated using 6 samples from 1 application.

Returns:
  • (self) -

Parameters:
  • reason (Object) --
def resolve(reason = 'resolved')
  @mutex.synchronize do
    @value['ok'] = reason
    @on_resolved.each { |callback| callback.call(reason) }
  end
  self
end