celluloid / celluloid-io

UNMAINTAINED: See celluloid/celluloid#779 - Evented sockets for Celluloid actors
https://celluloid.io
MIT License
880 stars 93 forks source link

Extract Celluloid::IO::Stream::Latch into Celluloid itself #89

Open tarcieri opened 10 years ago

tarcieri commented 10 years ago

This class is effectively a "task aware mutex" and is available here:

https://github.com/celluloid/celluloid-io/blob/fdd66442f65715e14e27910a01ce0d7ef971915d/lib/celluloid/io/stream.rb#L369

Perhaps it should be called Celluloid::Mutex instead? Celluloid::Lock? Celluloid::Semaphore? (it's close to being a semaphore)

digitalextremist commented 9 years ago

This will be done in 0.17.5 at celluloid/celluloid#341