Handbook
Glossary
with-pool ( pool quot -- )
Connection pools
Prev:
<pool> ( class -- pool )
Next:
acquire-connection ( pool -- conn )
Vocabulary
io
.
pools
Inputs
pool
a
pool
quot
a
quotation
Outputs
None
Word description
Calls a quotation in a new dynamic scope with the
pool
variable set to
pool
. The pool is disposed of after the quotation returns, or if an error is thrown.
Definition
USING:
destructors
kernel
namespaces
;
IN:
io.pools
:
with-pool
( pool quot -- )
[
pool
swap
with-variable
]
curry
with-disposal
;
inline