Server.server.forever.go: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/server.bend as Server Lines 449-457 of emerging-ezhttp@0.21.0.0/src/server.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/server.bend&start_line=449&end_line=457 import Base import emerging-ezhttp@0.21.0.0/src/step.bend as Step # the accept loop with no limit: it runs until the process is stopped @unsafe def server.forever.go(~C: Data, ~handle: C -> Req -> IO(Answer), +ctx: C, +slots: Chan(Unit), +limited: Bool, +done: Chan(Unit), listener: Listener) -> IO(Unit): IO.bind(Listener & Step.Accept, Unit, server.accept(listener), r => server.loop.got(~C, handle, ctx, slots, limited, done, False{}, r, l => server.forever.go(~C, handle, ctx, slots, limited, done, l), l => server.forever.go(~C, handle, ctx, slots, limited, done, l), l => server.forever.go(~C, handle, ctx, slots, limited, done, l))) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Chan https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Listener https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Socket https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/server.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/server.bend&name=Req https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/server.bend&name=server.accept https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/server.bend&name=server.loop.got https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/step.bend&name=Accept