struct Attempt
- Attempt
- Struct
- Value
- Object
Extended Modules
- Calling::NoRec
Defined in:
attempt.crlib/context.cr
lib/method_recording.cr
version.cr
Constant Summary
-
FOREVER =
-1_i64
-
VERSION =
"0.1.0"
Constructors
Class Method Summary
- .prewait(value : Number)
- .sleep(klass : ::Calling::Any.class)
- .sleep(seconds : Float64)
- .start(&)
- .times(value : Int::Primitive)
- .wait(value : Number)
Instance Method Summary
-
#dup
Returns a shallow copy of this object.
- #new_context
- #prewait(seconds : Number)
- #prewait : Float64 | Nil
- #prewait=(seconds : Number | Nil)
- #start(&)
- #times(n : Int::Primitive)
- #times : Int64 | Nil
- #times=(n : Int::Primitive | Nil)
- #wait(seconds : Number)
- #wait : Float64 | Nil
- #wait=(seconds : Number | Nil)
Constructor Detail
def self.new(times : Int::Primitive | Nil = nil, wait : Number | Nil = nil, prewait : Number | Nil = nil)
#
Class Method Detail
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.