NAME

DBIx::Loop::Future - the canonical future for DBIx::Loop

DESCRIPTION

A minimal, one-shot future. The hot primitives (new, done, fail, on_ready, is_ready, is_done, is_failed, failure, get) are implemented in C, and so are then and else: a continuation is an array on the future's own callback queue rather than a compiled closure, so settling a chain runs no Perl frame except your own callbacks.

This is the future DBIx::Loop returns on loops that have no native future (AnyEvent, POE). On loops that do (IO::Async Future, Mojo Mojo::Promise, Hyperman hmf), the loop adapter's future factory returns that native type instead. See DBIx::Loop.

get returns the result only once the future is ready; awaiting a pending future is the event loop's job, not the future's.

AUTHOR

LNATION <email@lnation.org>