class Concurrent::SafeTaskExecutor

def execute(*args)

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

def execute: (*Array[] args) -> untyped

This signature was generated using 2 samples from 1 application.

Returns:
  • (Array) -
def execute(*args)
  success = true
  value   = reason = nil
  synchronize do
    begin
      value   = @task.call(*args)
      success = true
    rescue @exception_class => ex
      reason  = ex
      success = false
    end
  end
  [success, value, reason]
end