asyncio.Queue.empty()

empty() Return True if the queue is empty, False otherwise.

asyncio.PriorityQueue

class asyncio.PriorityQueue A subclass of Queue; retrieves entries in priority order (lowest first). Entries are typically tuples of the form: (priority number, data).

asyncio.Protocol

class asyncio.Protocol The base class for implementing streaming protocols (for use with e.g. TCP and SSL transports).

asyncio.new_event_loop()

asyncio.new_event_loop() Equivalent to calling get_event_loop_policy().new_event_loop().

asyncio.open_connection()

coroutine asyncio.open_connection(host=None, port=None, *, loop=None, limit=None, **kwds) A wrapper for create_connection() returning a (reader, writer) pair. The reader returned is a StreamReader instance; the writer is a StreamWriter instance. The arguments are all the usual arguments to AbstractEventLoop.create_connection() except protocol_factory; most common are positional host and port, with various optional keyword arguments following. Additional optional keyword arguments are loop (t

asyncio.open_unix_connection()

coroutine asyncio.open_unix_connection(path=None, *, loop=None, limit=None, **kwds) A wrapper for create_unix_connection() returning a (reader, writer) pair. See open_connection() for information about return value and other details. This function is a coroutine. Availability: UNIX.

asyncio.ProactorEventLoop

class asyncio.ProactorEventLoop Proactor event loop for Windows using “I/O Completion Ports” aka IOCP. Subclass of AbstractEventLoop. Availability: Windows. See also MSDN documentation on I/O Completion Ports.

asyncio.Lock.release()

release() Release a lock. When the lock is locked, reset it to unlocked, and return. If any other coroutines are blocked waiting for the lock to become unlocked, allow exactly one of them to proceed. When invoked on an unlocked lock, a RuntimeError is raised. There is no return value.

asyncio.LimitOverrunError

exception asyncio.LimitOverrunError Reached the buffer limit while looking for a separator. consumed Total number of to be consumed bytes.

asyncio.Lock

class asyncio.Lock(*, loop=None) Primitive lock objects. A primitive lock is a synchronization primitive that is not owned by a particular coroutine when locked. A primitive lock is in one of two states, ‘locked’ or ‘unlocked’. It is created in the unlocked state. It has two basic methods, acquire() and release(). When the state is unlocked, acquire() changes the state to locked and returns immediately. When the state is locked, acquire() blocks until a call to release() in another coroutine