diff --git a/eventlet/channel.py b/eventlet/channel.py new file mode 100644 index 0000000..3c52824 --- /dev/null +++ b/eventlet/channel.py @@ -0,0 +1,15 @@ +from eventlet import coros + +class channel(coros.queue): + + def __init__(self): + coros.queue.__init__(self, 0) + + def receive(self): + return self.wait() + + @property + def balance(self): + return self.sem.balance + +