def conn.idle

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

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-wire@0.4.7.0/wire.bend as Wire

3645def conn.idle(c: Conn) -> IO(Took):
3646  match c:
3647    case Conn{+tls, s}:
3648      do IO<Took>:
3649        r : Socket & Bool <- Wire.idle(s)
3650        return took.seen(tls, r)
3651    case ConnH2{s, client}:
3652      do IO<Took>:
3653        r : Socket & Bool <- Wire.idle(s)
3654        h2.idle.peek(client, r)

Uses (11)

Used by (1)