guardch

moon add Milky2018/guardch@0.1.0
Download zip
Author
Version
0.1.0
License
Apache-2.0
Last updated
last year
Downloads
23

Dependencies

README

#Guarded Channel

An asynchronous channel that allows receiving messages only when a certain condition is met.

#
GuardChannel

type GuardChannel[T]

#
GuardChannel::new

fn GuardChannel::new[T]() -> GuardChannel[T]

#
GuardChannel::recv

fn GuardChannel::recv[T](self : GuardChannel[T], pred : (T) -> Bool) -> T

#
GuardChannel::send

fn GuardChannel::send[T](self : GuardChannel[T], v : T) -> Unit

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io