brk-code

asyncio の API リファレンス

asyncio (python/asyncio) の公開 API 102 件 —— クラス 44、関数 7、メソッド 51。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: python/asyncio

種別件数
クラス44
関数7
メソッド51

API 一覧

funcasyncio.coroutines.coroutine(func)
Decorator to mark coroutines.
funcasyncio.coroutines.iscoroutine(obj)
Return True if obj is a coroutine object.
classasyncio.events.AbstractEventLoop
Abstract event loop.
methodasyncio.events.AbstractEventLoop.close()
Close the loop.
classasyncio.events.AbstractEventLoopPolicy
Abstract policy for accessing the event loop.
classasyncio.events.AbstractServer
Abstract server returned by create_server().
methodasyncio.events.AbstractServer.close()
Stop serving.
classasyncio.events.BaseDefaultEventLoopPolicy
Default policy implementation for accessing the event loop.
methodasyncio.events.BaseDefaultEventLoopPolicy.get_event_loop()
Get the event loop.
methodasyncio.events.BaseDefaultEventLoopPolicy.new_event_loop()
Create a new event loop.
methodasyncio.events.BaseDefaultEventLoopPolicy.set_event_loop(loop)
Set the event loop.
classasyncio.events.Handle
Object returned by callback registration methods.
classasyncio.events.TimerHandle
Object returned by timed callback registration methods.
funcasyncio.events.get_event_loop()
Return an asyncio event loop.
funcasyncio.events.get_event_loop_policy()
Get the current event loop policy.
funcasyncio.events.set_event_loop_policy(policy)
Set the current event loop policy.
classasyncio.futures.Future
This class is *almost* compatible with concurrent.futures.Future.
methodasyncio.futures.Future.cancel()
Cancel the future and schedule callbacks.
methodasyncio.futures.Future.cancelled()
Return True if the future was cancelled.
methodasyncio.futures.Future.done()
Return True if the future is done.
methodasyncio.futures.Future.result()
Return the result this future represents.
methodasyncio.futures.Future.set_result(result)
Mark the future done and set its result.
classasyncio.futures.InvalidStateError
The operation is not allowed in this state.
funcasyncio.futures.isfuture(obj)
Check for a Future.
funcasyncio.futures.wrap_future(future, *loop=None)
Wrap concurrent.futures.Future object.
classasyncio.locks.BoundedSemaphore
A bounded semaphore implementation.
classasyncio.locks.Condition
Asynchronous equivalent to threading.Condition.
methodasyncio.locks.Condition.wait()
Wait until notified.
methodasyncio.locks.Condition.wait_for(predicate)
Wait until a predicate becomes true.
classasyncio.locks.Event
Asynchronous equivalent to threading.Event.
methodasyncio.locks.Event.clear()
Reset the internal flag to false.
methodasyncio.locks.Event.set()
Set the internal flag to true.
methodasyncio.locks.Event.wait()
Block until the internal flag is true.
classasyncio.locks.Lock
Primitive lock objects.
methodasyncio.locks.Lock.acquire()
Acquire a lock.
methodasyncio.locks.Lock.locked()
Return True if lock is acquired.
methodasyncio.locks.Lock.release()
Release a lock.
classasyncio.locks.Semaphore
A Semaphore implementation.
methodasyncio.locks.Semaphore.acquire()
Acquire a semaphore.
classasyncio.protocols.BaseProtocol
Common base class for protocol interfaces.
methodasyncio.protocols.BaseProtocol.connection_made(transport)
Called when a connection is made.
classasyncio.protocols.DatagramProtocol
Interface for datagram protocol.
classasyncio.protocols.Protocol
Interface for stream protocol.
methodasyncio.protocols.Protocol.data_received(data)
Called when some data is received.
classasyncio.protocols.SubprocessProtocol
Interface for protocol for subprocess calls.
methodasyncio.protocols.SubprocessProtocol.process_exited()
Called when subprocess has exited.
classasyncio.queues.Queue
A queue, useful for coordinating producer and consumer coroutines.
methodasyncio.queues.Queue.empty()
Return True if the queue is empty, False otherwise.
methodasyncio.queues.Queue.get()
Remove and return an item from the queue.
methodasyncio.queues.Queue.get_nowait()
Remove and return an item from the queue.
methodasyncio.queues.Queue.maxsize()
Number of items allowed in the queue.
methodasyncio.queues.Queue.put(item)
Put an item into the queue.
methodasyncio.queues.Queue.qsize()
Number of items in the queue.
classasyncio.selector_events.BaseSelectorEventLoop
Selector event loop.
methodasyncio.selector_events.BaseSelectorEventLoop.add_reader(fd, callback, *args)
Add a reader callback.
methodasyncio.selector_events.BaseSelectorEventLoop.add_writer(fd, callback, *args)
Add a writer callback..
methodasyncio.selector_events.BaseSelectorEventLoop.remove_reader(fd)
Remove a reader callback.
methodasyncio.selector_events.BaseSelectorEventLoop.remove_writer(fd)
Remove a writer callback.
methodasyncio.selector_events.BaseSelectorEventLoop.sock_accept(sock)
Accept a connection.
methodasyncio.selector_events.BaseSelectorEventLoop.sock_recv(sock, n)
Receive data from the socket.
methodasyncio.selector_events.BaseSelectorEventLoop.sock_sendall(sock, data)
Send data to the socket.
classasyncio.selectors.BaseSelector
Selector abstract base class.
methodasyncio.selectors.BaseSelector.close()
Close the selector.
methodasyncio.selectors.BaseSelector.register(fileobj, events, data=None)
Register a file object.
methodasyncio.selectors.BaseSelector.unregister(fileobj)
Unregister a file object.
classasyncio.selectors.DevpollSelector
Solaris /dev/poll selector.
classasyncio.selectors.EpollSelector
Epoll-based selector.
classasyncio.selectors.KqueueSelector
Kqueue-based selector.
classasyncio.selectors.PollSelector
Poll-based selector.
classasyncio.selectors.SelectSelector
Select-based selector.
classasyncio.sslproto.SSLProtocol
SSL protocol.
classasyncio.streams.FlowControlMixin
Reusable flow control logic for StreamWriter.drain().
classasyncio.streams.IncompleteReadError
Incomplete read error.
classasyncio.streams.LimitOverrunError
Reached the buffer limit while looking for a separator.
methodasyncio.streams.StreamReader.read(n=-1)
Read up to `n` bytes from the stream.
methodasyncio.streams.StreamReader.readexactly(n)
Read exactly `n` bytes.
classasyncio.streams.StreamReaderProtocol
Helper class to adapt between Protocol and StreamReader.
classasyncio.streams.StreamWriter
Wraps a Transport.
methodasyncio.streams.StreamWriter.drain()
Flush the write buffer.
classasyncio.subprocess.SubprocessStreamProtocol
Like StreamReaderProtocol, but for a subprocess.
classasyncio.transports.BaseTransport
Base class for transports.
methodasyncio.transports.BaseTransport.close()
Close the transport.
methodasyncio.transports.BaseTransport.get_protocol()
Return the current protocol.
methodasyncio.transports.BaseTransport.set_protocol(protocol)
Set a new protocol.
classasyncio.transports.DatagramTransport
Interface for datagram (UDP) transports.
methodasyncio.transports.DatagramTransport.abort()
Close the transport immediately.
methodasyncio.transports.DatagramTransport.sendto(data, addr=None)
Send data to the transport.
classasyncio.transports.ReadTransport
Interface for read-only transports.
methodasyncio.transports.ReadTransport.pause_reading()
Pause the receiving end.
methodasyncio.transports.ReadTransport.resume_reading()
Resume the receiving end.
classasyncio.transports.Transport
Interface representing a bidirectional transport.
classasyncio.transports.WriteTransport
Interface for write-only transports.
methodasyncio.transports.WriteTransport.abort()
Close the transport immediately.
classasyncio.unix_events.AbstractChildWatcher
Abstract base class for monitoring child processes.
methodasyncio.unix_events.AbstractChildWatcher.close()
Close the watcher.
classasyncio.unix_events.FastChildWatcher
'Fast' child watcher implementation.
classasyncio.unix_events.SafeChildWatcher
'Safe' child watcher implementation.
classasyncio.windows_events.IocpProactor
Proactor implementation using IOCP.
methodasyncio.windows_events.IocpProactor.wait_for_handle(handle, timeout=None)
Wait for a handle.
classasyncio.windows_events.PipeServer
Class representing a pipe server.
classasyncio.windows_events.ProactorEventLoop
Windows version of proactor event loop using IOCP.
classasyncio.windows_utils.Popen
Replacement for subprocess.Popen using overlapped pipe handles.

この情報について

掲載しているシグネチャは python/asyncio の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る