1BDB(3)                User Contributed Perl Documentation               BDB(3)
2
3
4

NAME

6       Coro::BDB - truly asynchronous bdb access
7

SYNOPSIS

9          use Coro::BDB;
10          use BDB;
11
12          # can now use any of the bdb requests
13

DESCRIPTION

15       This module is an AnyEvent user, you need to make sure that you use and
16       run a supported event loop.
17
18       This module implements a thin wrapper around the BDB module: Each BDB
19       request that could block and doesn't get passed a callback will
20       normally block all coroutines. after loading this module, this will no
21       longer be the case (it provides a suitable sync prepare callback).
22
23       It will also register an AnyEvent watcher as soon as AnyEvent chooses
24       an event loop.
25
26       The AnyEvent watcher can be disabled by executing "undef
27       $Coro::BDB::WATCHER". Please notify the author of when and why you
28       think this was necessary.
29
30       This module does not export anything (unlike Coro::AIO), as BDB already
31       supports leaving out the callback. (Unfortunately, it ties a C context
32       to each coroutine executing such a callback, so in the future, it might
33       export more efficient wrappers).
34

SEE ALSO

36       BDB of course.
37

AUTHOR/SUPPORT/CONTACT

39          Marc A. Lehmann <schmorp@schmorp.de>
40          http://software.schmorp.de/pkg/Coro.html
41
42
43
44perl v5.32.0                      2020-08-03                            BDB(3)
Impressum