The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MongoDB::Async::Pool - Connection pool

SYNOPSIS

The MongoDB::Async::Pool class creates a poll of MongoDB::Async::Connection connections

METHODS

new({ MongoDB::Async::Connection args }, { MongoDB::Async::Pool args });

Creates pool of MongoDB::Async::Connection objects

$pool->get;

Returns MongoDB::Async::Connection object. You don`t need to think about returning object to pool, it`ll be returned on DESTROY

TODO

Opened connections limit

Timeout to close unused connections