class Concurrent::ScheduledTask
def self.execute(delay, opts = {}, &task)
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.execute: (Float delay, ?Hash opts, ) -> untyped
This signature was generated using 1 sample from 1 application.
-
(ArgumentError)
- if no block is given
Returns:
-
(ScheduledTask)
- the newly created `ScheduledTask` in the `:pending` state
Parameters:
-
delay
(Float
) -- the number of seconds to wait for before executing the task
def self.execute(delay, opts = {}, &task) new(delay, opts, &task).execute end