moonbitlang/async/cond_var does not have a README file

    Cond

    type Cond

    A condition variable that can be used for synchronization between tasks.

    Cond::broadcast

    fn Cond::broadcast(cond : Cond) -> Unit

    Send a broadcast signal to the condition variable, waking up all tasks waiting for the condition variable. If no task is waiting for the condition variable, nothing will happen.

    Cond::new

    fn Cond::new() -> Cond

    Create a new condition variable.

    Cond::signal

    fn Cond::signal(cond : Cond) -> Unit

    Issue a single signal through the condition variable, waking up the first task waiting for the condition variable. If no task is waiting for the condition variable, nothing will happen.

    Cond::wait

    async fn Cond::wait(cond : Cond) -> Unit

    Wait for the condition to get signaled. wait itself never fail, and will wait indefinitely. However, since wait is a blocking point, the task running wait may be cancelled, in this case, an cancellation will be raised from wait.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io