asyncio
is an event driven core lib of python 3.4. I know twisted, a similar lib for asyncio
, implements the Reactor
pattern, but what kind of pattern does asyncio
implement?
Well, it uses reactor for posix. Windows implementation has proactor event loop too.
As @AndrewSvetlov answered, Python already will select the most performant selector for you, depending on your operating system. Different selector event loops will be, ensuring to get the tightest loop, the most performant selector available on your operating system. So it implements both patterns.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With