make-connection ( pool -- conn )
Connection pools
Prev:with-pooled-connection ( pool quot -- )
Next:datagram-pool


Vocabulary
io.pools

Inputs and outputs
poola pool
conna connection


Generic word contract
Makes a connection for the pool.

Definition
IN: io.pools

GENERIC: make-connection ( pool -- conn )


Methods
USING: accessors io.pools io.sockets ;

M: datagram-pool make-connection addrspec>> <datagram> ;


USING: accessors db db.pools io.pools ;

M: db-pool make-connection db>> db-open ;


USING: accessors io.pools mongodb.connection mongodb.driver ;

M: mdb-pool make-connection mdb>> mdb-open ;