module AwaitAsync::Helper

Extended Modules

Defined in:

await_async/helper.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def await(timeout : Time::Span, futures : Enumerable(MiniFuture(T))) forall T #

Iterate through all the future and await for them.


[View source]
def await(timeout : Time::Span, future : MiniFuture) #

Await a future to resolve, or throw MiniFuture::TimeoutException otherwise.


[View source]
def await(futures : Enumerable(MiniFuture(T))) forall T #

Iterate through all the future and await for them.


[View source]
def await(future : MiniFuture) #

Await a future to resolve.


[View source]

Macro Detail

macro async(method) #

Ask Crystal to run this method asynchronously in its own fiber.

NOTE The fiber won't be started after creation.


[View source]
macro async(&block) #

[View source]
macro async!(method) #

Ask Crystal to run this method asynchronously in its own fiber.


[View source]
macro async!(&block) #

[View source]