class Async::Future(T)

Defined in:

async/future.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(*, name : String | Nil = nil, delay = 0, callback : Proc(T) | Nil) #

[View source]
def self.new(*args, **kwargs, &block : -> T) #

[View source]
def self.new(*args, **kwargs) #

[View source]

Class Method Detail

def self.all(futures : Enumerable(Future(U)), ordered = false) forall U #

[View source]
def self.all(futures : Enumerable(Future(U)), ordered = false, &block : U | Nil -> ) forall U #

[View source]
def self.all(*futures : Future(U), ordered = false) forall U #

[View source]
def self.all(*futures : Future(U), ordered = false, &block : U | Nil -> ) forall U #

[View source]
def self.any(futures : Enumerable(Future(U))) forall U #

[View source]
def self.any(futures : Enumerable(Future(U)), &block : U -> ) forall U #

[View source]
def self.any(*futures : Future(U), &block : U -> ) forall U #

[View source]
def self.any(*futures : Future(U)) forall U #

[View source]
def self.await(*args, **kwargs, &block : -> T) #

[View source]
def self.execute(*args, **kwargs, &block : -> T) #

[View source]
def self.race(futures : Enumerable(Future(U))) forall U #

[View source]
def self.race(futures : Enumerable(Future(U)), &block : U -> ) forall U #

[View source]
def self.race(*futures : Future(U), &block : U -> ) forall U #

[View source]
def self.race(*futures : Future(U)) forall U #

[View source]

Instance Method Detail

def callback : Proc(T) | Nil #

[View source]
def callback=(callback : Proc(T) | Nil) #

[View source]
def cancel #

[View source]
def canceled? #

[View source]
def completed? #

[View source]
def delay : Time::Span #

[View source]
def delay=(delay : Time::Span) #

[View source]
def delayed? #

[View source]
def error : Exception | Nil #

[View source]
def error=(value : String | Exception) #

[View source]
def execute #

[View source]
def failure? #

[View source]
def idle? #

[View source]
def name : String | Nil #

[View source]
def name=(name : String | Nil) #

[View source]
def result : T | Nil #

[View source]
def result=(value : T) #

[View source]
def running? #

[View source]
def state : State #

[View source]
def success? #

[View source]
def wait : T | Nil #

[View source]
def wait! : T #

[View source]