'Returns true if a result is available for ``key``.'

def is_ready(self, key):

    if ((self.pending_callbacks is None) or (key not in self.pending_callbacks)):
        raise UnknownKeyError(('key    %r    is    not    pending' % (key,)))
    return (key in self.results)
