From f1e225cbb571920bb6d17f6ff15013f2c69c6c6c Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 17 Jul 2018 10:53:15 -0700 Subject: Use twisted reactor as asyncio event loop This puts the twisted event loop into the asyncio framework. This means that we're currently running all over our twisted.defered's and twisted.inlineCallbacks through asyncio, using the twisted loop. This will allow incremental updates from twisted's event loop to a standard asyncio event loop. --- alot/__main__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alot/__main__.py') diff --git a/alot/__main__.py b/alot/__main__.py index 221e6b22..9899bf36 100644 --- a/alot/__main__.py +++ b/alot/__main__.py @@ -6,6 +6,9 @@ import logging import os import sys +from twisted.internet import asyncioreactor +asyncioreactor.install() + import alot from alot.settings.const import settings from alot.settings.errors import ConfigError -- cgit v1.2.3