Async event signaling in zig

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 มิ.ย. 2024
  • Stream from June 21, 2024 at / sphaerophoria
    00:00 Intro
    06:40 Http connection reference counting
    38:15 Http connection wait state
    47:20 Wake http connection up on event

ความคิดเห็น • 3

  • @sphaerophoria
    @sphaerophoria  8 วันที่ผ่านมา +1

    01:38:15 It's actually possible to fix this by just inverting the dependency order. E.g. instead of HttpConnection owning something that gives it responses to write, have a specific connection own an HttpConnection and forward polls to it. See github.com/sphaerophoria/ball-machine/blob/dcc4ec5b03435d00b190dfbfbff2be55195419eb/src/http_test.zig#L8 as an example (WIP commit, will probably get garbage collected at some point)

  • @MrKeebs
    @MrKeebs 8 วันที่ผ่านมา

    Thanks!

  • @frisketdog
    @frisketdog 8 วันที่ผ่านมา

    Thanks!