Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str ClassDef bases body Assign NameStore ListLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIsNot AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryFinally body Expr Call NameLoad NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assert CompareIs AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr BoolOpAnd AttributeLoad NameLoad attr Str Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad TryFinally body Assign NameStore Call NameLoad NameLoad TryFinally body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareIsNot NameLoad NameLoad body Raise finalbody Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body While AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIn NameLoad AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpMod Str AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Str Return BinOpAdd NameLoad BinOpMod Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIsNot AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareIs AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Raise AttributeLoad NameLoad attr orelse If NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIs NameLoad NameLoad BinOpMod Str TupleLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise If CompareIs AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Raise AttributeLoad NameLoad attr orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIs NameLoad NameLoad BinOpMod Str TupleLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body While AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A greenlet N/A sys collections deque N/A hubs timeout Timeout hubs get_hub hubs.switch gyield N/A __all__ N/A Event TEvent AsyncResult _NONE N/A N/A N/A __slots__ N/A __repr__ N/A N/A self N/A N/A N/A <_NONE> N/A N/A N/A _NONE N/A _NONE Event N/A N/A N/A An abstraction where an arbitrary number of greenlets can wait for one event from another

    Events are similar to a Queue that can only hold one item, but differ
    in two important ways:

    1. Calling :meth:`send` never unschedules the current GreenThread
    2. :meth:`send` can only be called once; create a new event to send again.

    They are good for communicating results between greenlets, and are the basis for how
    :meth:`GreenThread.wait() <guv.GreenThread.GreenThread.wait>` is implemented.

    >>> from guv import event
    >>> import guv
    >>> evt = event.Event()
    >>> def baz(b):
    ...     evt.send(b + 1)
    ...
    >>> _ = guv.spawn_n(baz, 3)
    >>> evt.wait()
    4
     N/A _result None N/A _exc None __init__ N/A N/A self N/A N/A N/A N/A self _waiters N/A set N/A N/A N/A self reset N/A __str__ N/A N/A self N/A N/A N/A params N/A N/A N/A self __class__ __name__ N/A hex N/A id self N/A self _result N/A self _exc N/A len N/A self _waiters N/A N/A <%s at %s result=%r _exc=%r _waiters[%d]> params N/A reset N/A N/A self N/A N/A N/A N/A N/A self _result _NONE Trying to re-reset() a fresh event. N/A N/A self _result _NONE N/A N/A self _exc None N/A ready N/A N/A self N/A N/A N/A Return true if the :meth:`wait` call will return immediately

        Used to avoid waiting for things that might take a while to time out. For example, you can
        put a bunch of events into a list, and then visit them all repeatedly, calling :meth:`ready`
        until one returns ``True``, and then you can :meth:`wait` on that one
         N/A N/A N/A self _result _NONE N/A has_exception N/A N/A self N/A N/A N/A N/A N/A self _exc None N/A has_result N/A N/A self N/A N/A N/A N/A N/A N/A self _result _NONE N/A N/A self _exc None N/A poll N/A N/A self notready N/A None N/A N/A N/A N/A self ready N/A N/A N/A N/A self wait N/A notready N/A poll_exception N/A N/A self notready N/A None N/A N/A N/A N/A self has_exception N/A N/A N/A N/A self wait N/A notready N/A poll_result N/A N/A self notready N/A None N/A N/A N/A N/A self has_result N/A N/A N/A N/A self wait N/A notready N/A wait N/A N/A self N/A N/A N/A Wait until another greenthread calls :meth:`send`

        Returns the value the other coroutine passed to :meth:`send`.

        Returns immediately if the event has already occurred.

        >>> from guv import event
        >>> import guv
        >>> evt = event.Event()
        >>> def wait_on():
        ...    retval = evt.wait()
        ...    print("waited for {0}".format(retval))
        >>> _ = guv.spawn(wait_on)
        >>> evt.send('result')
        >>> guv.sleep(0)
        waited for result

        >>> evt.wait()
        'result'
         N/A current N/A N/A greenlet getcurrent N/A N/A N/A self _result _NONE N/A N/A N/A N/A N/A self _waiters add current N/A N/A N/A N/A gyield False N/A N/A N/A N/A N/A self _waiters discard current N/A N/A N/A self _exc None N/A N/A N/A N/A current throw N/A self _exc N/A N/A self _result N/A send N/A N/A self result exc N/A None None N/A N/A Make arrangements for the waiters to be woken with the result and then return immediately
        to the parent

        >>> from guv import event
        >>> import guv
        >>> evt = event.Event()
        >>> def waiter():
        ...     print('about to wait')
        ...     result = evt.wait()
        ...     print('waited for {0}'.format(result))
        >>> _ = guv.spawn(waiter)
        >>> guv.sleep(0)
        about to wait
        >>> evt.send('a')
        >>> guv.sleep(0)
        waited for a

        It is an error to call :meth:`send` multiple times on the same event.

        >>> evt.send('whoops')
        Traceback (most recent call last):
        ...
        AssertionError: Trying to re-send() an already-triggered event.

        Use :meth:`reset` between :meth:`send` s to reuse an event object.
         N/A N/A N/A self _result _NONE Trying to re-send() an already-triggered event. N/A N/A self _result result N/A N/A N/A exc None N/A N/A isinstance exc tuple N/A N/A exc N/A exc N/A N/A self _exc exc N/A hub N/A N/A hubs get_hub N/A waiter N/A self _waiters N/A N/A N/A N/A hub schedule_call_global 0 N/A self _do_send N/A self _result N/A self _exc waiter N/A _do_send N/A N/A self result exc waiter N/A N/A N/A N/A waiter N/A self _waiters N/A N/A N/A exc None N/A N/A N/A N/A waiter switch result N/A N/A N/A N/A waiter throw exc N/A send_exception N/A N/A self N/A args N/A N/A Same as :meth:`send`, but sends an exception to waiters.

        The arguments to send_exception are the same as the arguments
        to ``raise``.  If a single exception object is passed in, it
        will be re-raised when :meth:`wait` is called, generating a
        new stacktrace.

           >>> from guv import event
           >>> evt = event.Event()
           >>> evt.send_exception(RuntimeError())
           >>> evt.wait()
           Traceback (most recent call last):
             File "<stdin>", line 1, in <module>
             File "guv/event.py", line 120, in wait
               current.throw(*self._exc)
           RuntimeError

        If it's important to preserve the entire original stack trace,
        you must pass in the entire :func:`sys.exc_info` tuple.

           >>> import sys
           >>> evt = event.Event()
           >>> try:
           ...     raise RuntimeError()
           ... except RuntimeError:
           ...     evt.send_exception(*sys.exc_info())
           ...
           >>> evt.wait()
           Traceback (most recent call last):
             File "<stdin>", line 1, in <module>
             File "guv/event.py", line 120, in wait
               current.throw(*self._exc)
             File "<stdin>", line 2, in <module>
           RuntimeError

        Note that doing so stores a traceback object directly on the
        Event object, which may cause reference cycles. See the
        :func:`sys.exc_info` documentation.
         N/A N/A N/A self send None args N/A N/A TEvent N/A N/A N/A A synchronization primitive that allows one greenlet to wake up one or more others. It has
    the same interface as :class:`threading.Event` but works across greenlets.

    An event object manages an internal flag that can be set to true with the :meth:`set` method and
    reset to false with the :meth:`clear` method. The :meth:`wait` method blocks until the flag is
    true.
     __init__ N/A N/A self N/A N/A N/A N/A self _links N/A set N/A N/A self _todo N/A set N/A N/A self _flag False N/A N/A self hub N/A get_hub N/A N/A self _notifier None N/A __str__ N/A N/A self N/A N/A N/A N/A <%s %s _links[%s]> N/A N/A N/A self __class__ __name__ N/A N/A N/A self _flag set clear N/A len N/A self _links N/A is_set N/A N/A self N/A N/A N/A Return true if and only if the internal flag is true. N/A N/A self _flag N/A N/A isSet is_set N/A ready is_set set N/A N/A self N/A N/A N/A Set the internal flag to true. All greenlets waiting for it to become true are awakened.
        Greenlets that call :meth:`wait` once the flag is true will not block at all.
         N/A N/A self _flag True N/A N/A N/A N/A self _todo update N/A self _links N/A N/A N/A self _todo N/A N/A self _notifier N/A N/A N/A self _notifier True N/A N/A N/A N/A self hub schedule_call_now N/A self _notify_links N/A clear N/A N/A self N/A N/A N/A Reset the internal flag to false.
        Subsequently, threads calling :meth:`wait`
        will block until :meth:`set` is called to set the internal flag to true again.
         N/A N/A self _flag False N/A wait N/A N/A self timeout N/A None N/A N/A Block until the internal flag is true.
        If the internal flag is true on entry, return immediately. Otherwise,
        block until another thread calls :meth:`set` to set the flag to true,
        or until the optional timeout occurs.

        When the *timeout* argument is present and not ``None``, it should be a
        floating point number specifying a timeout for the operation in seconds
        (or fractions thereof).

        Return the value of the internal flag (``True`` or ``False``).
         N/A N/A self _flag N/A N/A N/A self _flag N/A N/A switch N/A N/A N/A greenlet getcurrent switch N/A N/A N/A self rawlink switch N/A N/A N/A timer N/A Timeout timeout N/A N/A N/A N/A N/A N/A gyield False N/A N/A N/A Timeout N/A ex N/A N/A N/A ex timer N/A N/A N/A N/A N/A N/A timer cancel N/A N/A N/A N/A self unlink switch N/A N/A self _flag N/A rawlink N/A N/A self callback N/A N/A N/A Register a callback to call when the internal flag is set to true

        *callback* will be called in the :class:`Hub <gevent.hub.Hub>`, so it must not use blocking
        *gevent API. callback* will be passed one argument: this instance.
         N/A N/A N/A callable callback N/A N/A N/A TypeError N/A Expected callable: %r N/A callback N/A N/A N/A N/A self _links add callback N/A N/A N/A self _flag N/A N/A self _notifier N/A N/A N/A N/A N/A self _todo add callback N/A N/A self _notifier True N/A N/A N/A N/A self hub schedule_call_now N/A self _notify_links N/A unlink N/A N/A self callback N/A N/A N/A Remove the callback set by :meth:`rawlink` N/A N/A N/A N/A N/A N/A self _links remove callback N/A N/A N/A ValueError N/A N/A N/A _notify_links N/A N/A self N/A N/A N/A N/A self _todo N/A N/A link N/A N/A N/A self _todo pop N/A N/A link N/A self _links N/A N/A N/A N/A N/A link self N/A N/A N/A N/A N/A N/A N/A self hub handle_error N/A link self N/A N/A sys exc_info N/A _reset_internal_locks N/A N/A self N/A N/A N/A For compatibility with threading.Event (only in case of patch_all(Event=True),
        by default Event is not patched)

        Exception AttributeError: AttributeError("'Event' object has no attribute
        '_reset_internal_locks'",)
        in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
         N/A N/A N/A AsyncResult N/A N/A N/A A one-time event that stores a value or an exception

    Like :class:`Event` it wakes up all the waiters when :meth:`set` or :meth:`set_exception` method
    is called. Waiters may receive the passed value or exception by calling :meth:`get` method
    instead of :meth:`wait`. An :class:`AsyncResult` instance cannot be reset.

    To pass a value call :meth:`set`. Calls to :meth:`get` (those that currently blocking as well as
    those made in the future) will return the value:

        >>> result = AsyncResult()
        >>> result.set(100)
        >>> result.get()
        100

    To pass an exception call :meth:`set_exception`. This will cause :meth:`get` to raise that
    exception:

        >>> result = AsyncResult()
        >>> result.set_exception(RuntimeError('failure'))
        >>> result.get()
        Traceback (most recent call last):
         ...
        RuntimeError: failure

    :class:`AsyncResult` implements :meth:`__call__` and thus can be used as :meth:`link` target:

        >>> import gevent
        >>> result = AsyncResult()
        >>> gevent.spawn(lambda : 1/0).link(result)
        >>> try:
        ...     result.get()
        ... except ZeroDivisionError:
        ...     print 'ZeroDivisionError'
        ZeroDivisionError
     __init__ N/A N/A self N/A N/A N/A N/A self _links N/A deque N/A N/A self value None N/A N/A self _exception _NONE N/A N/A self hub N/A get_hub N/A N/A self _notifier None N/A __str__ N/A N/A self N/A N/A N/A result N/A <%s  N/A N/A N/A self __class__ __name__ N/A N/A N/A N/A self value None N/A N/A self _exception _NONE N/A N/A result N/A value=%r  N/A self value N/A N/A N/A N/A self _exception None N/A N/A self _exception _NONE N/A N/A result N/A exception=%r  N/A self _exception N/A N/A N/A self _exception _NONE N/A N/A result unset  N/A N/A result N/A  _links[%s]> N/A len N/A self _links N/A ready N/A N/A self N/A N/A N/A Return true if and only if it holds a value or an exception N/A N/A N/A self _exception _NONE N/A successful N/A N/A self N/A N/A N/A Return true if and only if it is ready and holds a value N/A N/A N/A self _exception None N/A exception N/A N/A self N/A N/A N/A Holds the exception instance passed to :meth:`set_exception` if :meth:`set_exception`
        was called.
        Otherwise ``None``. N/A N/A N/A self _exception _NONE N/A N/A N/A self _exception N/A property set N/A N/A self value N/A None N/A N/A Store the value. Wake up the waiters.

        All greenlets blocking on :meth:`get` or :meth:`wait` are woken up.
        Sequential calls to :meth:`wait` and :meth:`get` will not block at all.
         N/A N/A self value value N/A N/A self _exception None N/A N/A N/A self _links N/A N/A self _notifier N/A N/A N/A self _notifier N/A N/A N/A N/A self hub loop run_callback N/A self _notify_links N/A set_exception N/A N/A self exception N/A N/A N/A Store the exception. Wake up the waiters.

        All greenlets blocking on :meth:`get` or :meth:`wait` are woken up.
        Sequential calls to :meth:`wait` and :meth:`get` will not block at all.
         N/A N/A self _exception exception N/A N/A N/A self _links N/A N/A self _notifier N/A N/A N/A self _notifier N/A N/A N/A N/A self hub loop run_callback N/A self _notify_links N/A get N/A N/A self block timeout N/A True None N/A N/A Return the stored value or raise the exception.

        If this instance already holds a value / an exception, return / raise it immediatelly.
        Otherwise, block until another greenlet calls :meth:`set` or :meth:`set_exception` or
        until the optional timeout occurs.

        When the *timeout* argument is present and not ``None``, it should be a
        floating point number specifying a timeout for the operation in seconds
        (or fractions thereof).
         N/A N/A N/A self _exception _NONE N/A N/A N/A N/A self _exception None N/A N/A N/A self value N/A N/A self _exception N/A N/A block N/A N/A switch N/A N/A N/A greenlet getcurrent switch N/A N/A N/A self rawlink switch N/A N/A N/A timer N/A Timeout timeout N/A N/A N/A result N/A N/A N/A self hub switch N/A N/A result self N/A Invalid switch into AsyncResult.get(): %r N/A result N/A N/A N/A N/A timer cancel N/A N/A N/A N/A N/A N/A self unlink switch N/A N/A N/A N/A self _exception None N/A N/A N/A self value N/A N/A self _exception N/A N/A Timeout N/A get_nowait N/A N/A self N/A N/A N/A Return the value or raise the exception without blocking.

        If nothing is available, raise :class:`gevent.Timeout` immediatelly.
         N/A N/A N/A self get block False N/A wait N/A N/A self timeout N/A None N/A N/A Block until the instance is ready.

        If this instance already holds a value / an exception, return immediatelly.
        Otherwise, block until another thread calls :meth:`set` or :meth:`set_exception` or
        until the optional timeout occurs.

        When the *timeout* argument is present and not ``None``, it should be a
        floating point number specifying a timeout for the operation in seconds
        (or fractions thereof).

        Return :attr:`value`.
         N/A N/A N/A self _exception _NONE N/A N/A N/A self value N/A N/A switch N/A N/A N/A greenlet getcurrent switch N/A N/A N/A self rawlink switch N/A N/A N/A timer N/A Timeout timeout N/A N/A N/A result N/A N/A N/A self hub switch N/A N/A result self N/A Invalid switch into AsyncResult.wait(): %r N/A result N/A N/A N/A N/A timer cancel N/A N/A N/A Timeout N/A exc N/A N/A N/A N/A self unlink switch N/A N/A exc timer N/A N/A N/A N/A N/A N/A N/A self unlink switch N/A N/A N/A self value N/A _notify_links N/A N/A self N/A N/A N/A N/A self _links N/A N/A link N/A N/A N/A self _links popleft N/A N/A N/A N/A link self N/A N/A N/A N/A N/A N/A N/A self hub handle_error N/A link self N/A N/A sys exc_info N/A rawlink N/A N/A self callback N/A N/A N/A Register a callback to call when a value or an exception is set.

        *callback* will be called in the :class:`Hub <gevent.hub.Hub>`, so it must not use
        blocking gevent API.
        *callback* will be passed one argument: this instance.
         N/A N/A N/A callable callback N/A N/A N/A TypeError N/A Expected callable: %r N/A callback N/A N/A N/A N/A self _links append callback N/A N/A N/A N/A self ready N/A N/A self _notifier N/A N/A N/A self _notifier N/A N/A N/A N/A self hub loop run_callback N/A self _notify_links N/A unlink N/A N/A self callback N/A N/A N/A Remove the callback set by :meth:`rawlink` N/A N/A N/A N/A N/A N/A self _links remove callback N/A N/A N/A ValueError N/A N/A N/A __call__ N/A N/A self source N/A N/A N/A N/A N/A source successful N/A N/A N/A N/A self set N/A source value N/A N/A N/A N/A self set_exception N/A source exception N/A N/A