From b9bcf4cc35d29b2ac9d69631b441c5d71868e650 Mon Sep 17 00:00:00 2001 From: Robert Niederreiter Date: Wed, 8 Feb 2023 11:59:26 +0100 Subject: [PATCH] use asyncio main loop in twisted --- shop.tac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shop.tac b/shop.tac index 9ccc1da..dcf64e6 100644 --- a/shop.tac +++ b/shop.tac @@ -10,6 +10,10 @@ # ./venv/bin/twistd -ny shop.tac ############################################################################## +# use asyncio main loop in twisted +from twisted.internet import asyncioreactor +asyncioreactor.install() + from twisted.application import internet from twisted.application import service from twisted.internet import reactor