txaio¶ txaio is a helper library for writing code that runs unmodified on both Twisted and asyncio. Contents¶ Overview Brief History Overview by Example Restrictions and Caveats Futures and Deferreds Callbacks and Errbacks Error Handling Real Examples Cross-API Magic Programming Guide Explict Event Loops Logging Logging Interoperability Starting Logging Yourself Application Programming Interface Explicitly Selecting a Framework Set an Event Loop / Reactor Test Helpers txaio module using_twisted using_asyncio use_asyncio() use_twisted() create_future() as_future() reject() cancel() resolve() add_callbacks() failure_message() failure_traceback() call_later() make_batched_timer() gather() make_logger() ILogger IFailedFuture Package Releases 25.6.1 23.1.1 22.2.1 21.2.1 20.12.1 20.4.1 20.3.1 20.1.1 18.8.1 18.7.1 2.10.0 2.9.0 2.8.2 2.8.1 2.8.0 2.7.1 2.7.0 2.6.1 2.6.0 2.5.2 2.5.1 2.5.0 2.4.0 2.3.1 2.3.0 previous releases AI Policy¶ API Reference txaio