Wykres commitów

18 Commity (bf8eef9d9e7fc0f08a11f3792c233babbdbb7c29)

Autor SHA1 Wiadomość Data
Paul Sokolovsky 42452a737e asyncio: Add dummy module. 2016-10-21 00:06:03 +03:00
Paul Sokolovsky 0b5ca354e2 asyncio_micro: Rename from asyncio.
As this is not compliant with asyncio API, can't be called asyncio, and
"micro" is just good moniker for what it's intended to be.
2014-10-21 01:31:58 +03:00
Paul Sokolovsky 4071bb5e74 asyncio: Clean up code a bit. 2014-10-21 01:31:57 +03:00
Paul Sokolovsky bce6c1cadf asyncio: Remove polling sleep implementation, it belongs in async_slow. 2014-10-21 01:31:57 +03:00
Paul Sokolovsky f0ce7978ce asyncio: Add basic asyncio stream interface test. 2014-10-21 01:31:57 +03:00
Paul Sokolovsky 0adccf0ab1 asyncio: Handle end of stream condition properly.
By removing any IO watches for associated file handle. The way it's
implemented tries to preserve OS-like separation between event loop and
tasks. So, stream to finish watching fd for IO also issues syscall,
instead of calling methods on loop instance directly. Calling method on
loop would be more efficient, but will require storing reference to loop
in each stream. And those separation matters...
2014-10-21 01:31:57 +03:00
Paul Sokolovsky fa273cae71 asyncio: Add basic loop.call_soon() test. 2014-10-21 01:31:57 +03:00
Paul Sokolovsky 179d0447f1 asyncio: Add asyncio.async() dummy factory function.
Not Task bloat implemented (so far?), so just identity function for CPython
compatibility.
2014-10-21 01:31:57 +03:00
Paul Sokolovsky e1537df79d asyncio: Add remove_reader()/remove_writer(). 2014-10-21 01:31:57 +03:00
Paul Sokolovsky f79b960890 asyncio: Use logging and errno modules. 2014-10-21 01:31:57 +03:00
Paul Sokolovsky 517c6ea084 asyncio: Add dumb debug output. 2014-10-21 01:31:57 +03:00
Paul Sokolovsky 02daa74b24 asyncio: Start adding asyncio stream interface. 2014-10-21 01:31:56 +03:00
Paul Sokolovsky ac0038f9a7 asyncio: Support read/write syscalls, and route vals both ways between coros. 2014-10-21 01:31:56 +03:00
Paul Sokolovsky 85071250f1 asyncio: EpollEventLoop.wait(): support infinite wait. 2014-10-21 01:31:56 +03:00
Paul Sokolovsky a71d4f45c1 asyncio: Make run_forever() actually run forever. 2014-10-21 01:31:56 +03:00
Paul Sokolovsky ee495b3807 asyncio: Recover eventloop's ability to work with callbacks.
Actually, coroutine support for call_soon() is a hack, in big asyncio coroutine
should be wrapped in Task object.
2014-10-21 01:31:56 +03:00
Paul Sokolovsky b42f8e383b asyncio: Implement subclass implementing filedes watching interface. 2014-10-21 01:31:56 +03:00
Paul Sokolovsky 80cea91b98 asyncio: Initial prototype implementation. 2014-10-21 01:31:56 +03:00