class Scar::Actions::Timed
- Scar::Actions::Timed
- Scar::Action
- Reference
- Object
Overview
A simple action that waits for a specified amount of time before completing
Sample usage:
app.act Scar::Actions::Timed.new(5) { puts "Hello after 5 seconds" }
Defined in:
scar/actions/timed_action.crConstructors
-
.new(duration, &block)
Creates a timed action that calls the given block after duration seconds
Instance methods inherited from class Scar::Action
completed?(dt : Float32)
completed?,
on_end
on_end,
on_start
on_start
Constructor Detail
def self.new(duration, &block)
#
Creates a timed action that calls the given block after duration seconds