igrigorik / em-jack

An Evented Beanstalk Client
http://dj2.github.com/jack
Other
64 stars 17 forks source link

EMJack::Connection - #use and #watch return nil if tube already being used/watched #3

Open enricob opened 13 years ago

enricob commented 13 years ago

These should probably return a deferrable of some sort, either one that is always succeeded or one that succeeds as long as the connection is still up. That way, the interface is more consistent from client perspective (he can hook up callbacks without having to worry about whether or not he's going to get a deferrable back).