class Scar::Actions::Timed

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.cr

Constructors

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


[View source]