def send

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

import bend-kit-postgres@0.3.0.0/postgres.bend as Postgres
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

125def send(c: Conn, data: Bytes.Bytes) -> IO(Result<&1, &1, Failure, Conn>):
126  Conn{+tls, sock, rd, +key, +ms, +status} = c
127  do IO<Result<&1, &1, Failure, Conn>>:
128    m : Socket & Result<&1, &1, U32 & String, Unit> <- io.write(tls, sock, data)
129    send.after(tls, rd, key, ms, status, m)

Uses (13)

Used by (2)