gnome-shell/js/ui/status
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
..
accessibility.js a11y: Change HC icon theme first 2020-03-17 12:45:25 +01:00
bluetooth.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
brightness.js js: Replace child properties 2019-11-01 19:42:01 +00:00
dwellClick.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
keyboard.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
location.js location: Update desktop file name for privacy settings 2020-03-06 19:16:47 +00:00
network.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
nightLight.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
power.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
remoteAccess.js cleanup: Don't shadow variables 2019-11-11 19:25:14 +00:00
rfkill.js cleanup: Avoid unnecessary parentheses 2019-11-11 19:25:14 +00:00
screencast.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
system.js status/system: Fix session submenu visibility 2020-02-04 14:40:44 +00:00
thunderbolt.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
volume.js volume: Cancel before checking state 2020-03-28 19:03:12 +01:00