• antirez's avatar
    Modules: block on keys: use a better interface. · 91f4bdc9
    antirez authored
    Using the is_key_ready() callback plus the reply callback later, creates
    different issues AFAIK:
    
    1. More complex API.
    2. We need to call the reply callback() ASAP if the is_key_ready()
    interface returned success, however the internals do not work in that
    way, so when the reply callback is called the setup could be different.
    To fix that, there is to break the current design that handles the
    unblocked clients asyncrhonously, and run the list ASAP.
    91f4bdc9
server.h 109 KB