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

asyncio.BufferedProtocol

Prev: asyncio.BrokenBarrierError | Up: asyncio | Next: asyncio.CancelledError
Rel: asyncio.AbstractEventLoop, asyncio.AbstractServer, asyncio.all_tasks, asyncio.as_completed
Ref: docs.python.org — asyncio.BufferedProtocol
Tags: #public #python3 #stdlib #asyncio


Import

import asyncio
from asyncio import BufferedProtocol

Signature & Overview

asyncio.BufferedProtocol()

Interface for stream protocol with manual buffer control.

Methods & Attributes

Usage

import asyncio

# Zero-copy protocol subclass using get_buffer() / buffer_updated()
assert issubclass(asyncio.BufferedProtocol, asyncio.BaseProtocol)

Gotchas

REPL Inspect

from asyncio import BufferedProtocol
help(BufferedProtocol)

Linked from

Related notes