struct

Attempt

Inherits Struct < Value < Object

Constants

FOREVER = -1_i64
VERSION = "0.1.0"

Constructors

new(times : Int::Primitive | Nil = nil, wait : Number | Nil = nil, prewait : Number | Nil = nil)
Source

Class methods

prewait(value : Number)
Source
sleep(klass : ::Calling::Any.class)
Source
sleep(seconds : Float64)
Source
start
Source
times(value : Int::Primitive)
Source
wait(value : Number)
Source

Instance methods

dup

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

Source
new_context
Source
prewait(seconds : Number)
Source
prewait
Source
prewait=(seconds : Number | Nil)
Source
start
Source
times(n : Int::Primitive)
Source
times
Source
times=(n : Int::Primitive | Nil)
Source
wait(seconds : Number)
Source
wait
Source
wait=(seconds : Number | Nil)
Source

Nested types