struct Attempt

Extended Modules

Defined in:

attempt.cr
lib/context.cr
lib/method_recording.cr
version.cr

Constant Summary

FOREVER = -1_i64
VERSION = "0.1.0"

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(times : Int::Primitive | Nil = nil, wait : Number | Nil = nil, prewait : Number | Nil = nil) #

[View source]

Class Method Detail

def self.prewait(value : Number) #

[View source]
def self.sleep(klass : ::Calling::Any.class) #

[View source]
def self.sleep(seconds : Float64) #

[View source]
def self.start(&) #

[View source]
def self.times(value : Int::Primitive) #

[View source]
def self.wait(value : Number) #

[View source]

Instance Method Detail

def dup #
Description copied from struct Value

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.


[View source]
def new_context #

[View source]
def prewait(seconds : Number) #

[View source]
def prewait : Float64 | Nil #

[View source]
def prewait=(seconds : Number | Nil) #

[View source]
def start(&) #

[View source]
def times(n : Int::Primitive) #

[View source]
def times : Int64 | Nil #

[View source]
def times=(n : Int::Primitive | Nil) #

[View source]
def wait(seconds : Number) #

[View source]
def wait : Float64 | Nil #

[View source]
def wait=(seconds : Number | Nil) #

[View source]