This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import zlib | |
from threading import Lock, Thread | |
from typing import ( | |
Literal, | |
Optional, | |
Protocol, | |
Sequence, | |
Type, | |
TypeAlias, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
class CoroutineIO(io.TextIOBase): | |
""" | |
Creates an writable IO interface to a coroutine. | |
""" | |
def __init__(self, coroutine): | |
""" | |
Creates a new IO object with a coroutine. The | |
coroutine should take no arguments. |