Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Crig::Concurrency::Result(T)
Inherits
Struct
<
Value
<
Object
Constructors
failure
(error :
Exception
) : self
Source
new
(value :
T
|
Nil
= nil, error :
Exception
|
Nil
= nil, has_value :
Bool
= false)
Source
success
(value :
T
) : self
Source
Instance methods
error
Source
failure?
Source
has_value?
Source
success?
Source
unwrap
Source
value
Source