Mercurial > libervia-backend
changeset 3388:cc288ec8ec1a
core: use utils.asDeferred for `launchCallback` so coroutines can be used
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:15 +0100 (2020-11-12) |
parents | b3e7e3c49d8f |
children | c3943afb4cac |
files | sat/core/sat_main.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/core/sat_main.py Thu Nov 12 14:53:15 2020 +0100 +++ b/sat/core/sat_main.py Thu Nov 12 14:53:15 2020 +0100 @@ -1453,7 +1453,7 @@ if kwargs.pop("one_shot", False): self.removeCallback(callback_id) - return defer.maybeDeferred(callback, *args, **kwargs) + return utils.asDeferred(callback, *args, **kwargs) # Menus management