Mercurial > libervia-backend
diff sat/core/sat_main.py @ 2645:f2cf1daa42cb
core: added async TriggerManager
Async trigger manager add an asyncPoint method which can be used with Deferred (or sync method).
This allow a triggers do to some long operations like doing network requests.
MessageReceived and sendMessageData now use asyncPoint.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 29 Jul 2018 19:22:51 +0200 |
parents | 189e38fb11ff |
children | 712cb4ff3e13 |
line wrap: on
line diff
--- a/sat/core/sat_main.py Sun Jul 29 18:44:49 2018 +0200 +++ b/sat/core/sat_main.py Sun Jul 29 19:22:51 2018 +0200 @@ -32,7 +32,7 @@ from sat.core.constants import Const as C from sat.memory import memory from sat.memory import cache -from sat.tools import trigger +from sat.tools import async_trigger as trigger from sat.tools import utils from sat.tools.common import dynamic_import from sat.tools.common import regex