On this page
  1. asyncio.EventLoop
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

asyncio.EventLoop

Prev: asyncio.Event | Up: asyncio | Next: asyncio.format_call_graph
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org — asyncio.EventLoop
Tags: #public #python3 #stdlib #asyncio


Import

import asyncio
from asyncio import EventLoop

Signature & Overview

asyncio.EventLoop(selector=None)

Unix event loop.

Methods & Attributes

Usage

import asyncio

# Concrete default event loop class on Python 3.14+ / Unix
assert hasattr(asyncio, "new_event_loop")

Gotchas

REPL Inspect

from asyncio import EventLoop
help(EventLoop)

Linked from

Related notes