class

Async::Future(T)

Inherits Reference / Object

Constructors

new(*, name : String | Nil = nil, delay = 0, callback : Proc(T) | Nil)
Source
new(*args, **kwargs, &block : -> T)
Source
new(*args, **kwargs)
Source

Class methods

all(futures : Enumerable(Future(U)), ordered = false) forall U
Source
all(futures : Enumerable(Future(U)), ordered = false, &block : U | Nil -> ) forall U
Source
all(*futures : Future(U), ordered = false) forall U
Source
all(*futures : Future(U), ordered = false, &block : U | Nil -> ) forall U
Source
any(futures : Enumerable(Future(U))) forall U
Source
any(futures : Enumerable(Future(U)), &block : U -> ) forall U
Source
any(*futures : Future(U), &block : U -> ) forall U
Source
any(*futures : Future(U)) forall U
Source
await(*args, **kwargs, &block : -> T)
Source
execute(*args, **kwargs, &block : -> T)
Source
race(futures : Enumerable(Future(U))) forall U
Source
race(futures : Enumerable(Future(U)), &block : U -> ) forall U
Source
race(*futures : Future(U), &block : U -> ) forall U
Source
race(*futures : Future(U)) forall U
Source

Instance methods

callback
Source
callback=(callback : Proc(T) | Nil)
Source
cancel
Source
canceled?
Source
completed?
Source
delay
Source
delay=(delay : Time::Span)
Source
delayed?
Source
error
Source
error=(value : String | Exception)
Source
execute
Source
failure?
Source
idle?
Source
name
Source
name=(name : String | Nil)
Source
result
Source
result=(value : T)
Source
running?
Source
state
Source
success?
Source
wait
Source
wait!
Source

Nested types