def pool.put

bend-kit-postgres@0.3.0.0 · postgres.bend:660

import bend-kit-postgres@0.3.0.0/postgres.bend as Postgres
import Base
import bend-kit-postgres@0.3.0.0/codec.bend as Codec

660# Gives c back for reuse. A connection with unread bytes is out of step, and one inside a
661# transaction would leak it to the next user, so either is closed instead.
662def pool.put(p: Pool, c: Conn) -> IO(Pool):
663  Conn{+tls, sock, rd, +key, +ms, +status} = c
664  pool.left(p, tls, sock, key, ms, status, Codec.pending(rd))

Uses (5)

Used by (0)

No other definition uses this definition.