module

AwaitAsync::Helper

Instance methods

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

Iterate through all the future and await for them.

Source
await(timeout : Time::Span, future : MiniFuture)

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

Source
await(futures : Enumerable(MiniFuture(T))) forall T

Iterate through all the future and await for them.

Source
await(future : MiniFuture)

Await a future to resolve.

Source

Macros

async(method)

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

NOTE: The fiber won't be started after creation.

Source
async
Source
async!(method)

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

Source
async!
Source