The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Coro::BDB - truly asynchronous bdb access

SYNOPSIS

   use BDB;
   use Coro::BDB;

   # can now use any of the bdb requests

DESCRIPTION

This module implements a thin wrapper around the BDB module.

Each BDB request that could block and doesn't get passed a callback will normally block all coroutines. after loading this module, this will no longer be the case.

It will also register an AnyEvent handler (this will be done when the module gets loaded and thus detects the event model at the same time, so you need to laod your event module before Coro::BDB).

This module does not export anything (unlike Coro::AIO), as BDB already supports leaving out the callback.

The AnyEvent watcher can be disabled by executing undef $Coro::BDB::WATCHER. Please notify the author of when and why you think this was necessary.

SEE ALSO

BDB of course.

AUTHOR

 Marc Lehmann <schmorp@schmorp.de>
 http://home.schmorp.de/