Treffer: Pyasynchio: The Python Asynchronous I/O Library.
Weitere Informationen
The article focuses on pyasynchio, a Python library created to support cross-platform asynchronous input/output (AIO) operations. It uses built-in Python file and socket handles as AIO target, so users can plug pyasynchio info into the middle of their code. AIO enables additional speed optimization at the operating system and drive level and does not require an operation to complete during the call to the function that started it. Pyasynchio utilizes the Proactor pattern and Asynchronous Completion Token pattern, but the dynamic type system of Python makes some of Proactor's object-oriented burden unnecessary. With coroutines, a number of I/O processing tasks can be coded in a synchronous manner but will still be able to take advantage of nonblocking I/O or AIO.