Sign in

    gaato/http/sync does not have a README file

    Gate

    pub(open) trait Gate {
    async fn acquire(Self) -> Unit noraise
    fn release(Self) -> Unit
    }

    An admission gate injected by an async runtime so sans-IO code can hold a slot across an exchange without importing that runtime.

    Timer

    pub(open) trait Timer {
    async fn within(Self, Int, async () -> Unit noraise) -> Bool noraise
    }

    A time limit injected by an async runtime (such as gaato/http-async) so sans-IO code can bound a piece of work without importing that runtime. Trait methods cannot be generic, so f returns nothing: a caller that wants a result writes it into a cell f captures.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io