Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 998 Bytes

README.rst

File metadata and controls

32 lines (20 loc) · 998 Bytes

asyncio_monkey

info:monkey patch asyncio modules for expected behaviour

Installation

pip install asyncio_monkey

Usage

# it must be done before any import asyncio statement
from asyncio_monkey import patch_all; patch_all()  # noqa

Features

  • Disables get_event_loop returns currently running loop, even if MainThread loop is None, useful for Python 3.6.0+ docs
  • Disables silent destroying futures inside asyncio.gather source