gnome-shell/subprojects/extensions-app/js
Florian Müllner 764527c8c9 js: Promisify async operations
Promises make asynchronous operations easier to manage, in particular
when used through the async/await syntax that allows for asynchronous
code to closely resemble synchronous one.

gjs has included a Gio._promisify() helper for a while now, which
monkey-patches methods that follow GIO's async pattern to return a
Promise when called without a callback argument.

Use that to get rid of all those GAsyncReadyCallbacks!

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1126
2020-03-31 05:43:40 +00:00
..
misc extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
gnome-shell-extension-prefs.in extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
main.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
org.gnome.Extensions.in extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
org.gnome.Extensions.src.gresource.xml extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00