def bounded.send

bend-kit-http@0.38.2.0 · http.bend:5573

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-time@0.3.0.0/time.bend as Time
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

5573def bounded.send(s: Socket, b: Bytes.Bytes, until: Time.Duration) -> IO(Socket & Result<&1, &1, U32 & String, Unit>):
5574  do IO<Socket & Result<&1, &1, U32 & String, Unit>>:
5575    now : Time.Duration <- Time.mono()
5576    +ms : U32 = phase.remaining(until, now)
5577    bounded.send.ready(U32.is_zero(ms), s, b, ms)

Uses (14)

Used by (6)