Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
await_async
master
AwaitAsync
Helper
MiniFuture
TimeoutException
Built with Crystal 1.9.2
2023-10-08 00:08:20 UTC
class
MiniFuture(T)
MiniFuture(T)
Reference
Object
Overview
Lightweight Future structure.
Defined in:
await_async/mini_future.cr
Constructors
.new
(immediate =
true
, &block : -> T)
Instance Method Summary
#await
(timeout : Time::Span | Nil =
nil
)
#error?
#finished?
#running?
Constructor Detail
def self.
new
(immediate =
true
, &block : -> T)
#
[
View source
]
Instance Method Detail
def
await
(timeout : Time::Span | Nil =
nil
)
#
[
View source
]
def
error?
#
[
View source
]
def
finished?
#
[
View source
]
def
running?
#
[
View source
]