gnome-shell/js/misc
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
..
config.js.in networkAgent: Drop VPN plugin cache 2020-03-17 14:07:15 +00:00
extensionUtils.js extensionSystem: Add hasUpdate state 2020-01-30 13:37:47 +00:00
fileUtils.js fileUtils: Remove some compatibility code 2020-03-09 13:18:48 +00:00
gnomeSession.js cleanup: Require "dangling" commas 2019-11-11 19:25:14 +00:00
history.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
ibusManager.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
inputMethod.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
introspect.js introspect: Add AnimationsEnabled property 2020-02-20 11:14:55 +00:00
jsParse.js cleanup: Avoid unnecessary parentheses 2019-11-11 19:25:14 +00:00
keyboardManager.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
loginManager.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
meson.build networkAgent: Drop VPN plugin cache 2020-03-17 14:07:15 +00:00
modemManager.js modemManager: fixed dbus path for GDBusProxy 2020-03-19 12:23:26 +01:00
objectManager.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
params.js cleanup: Only omit braces for single-line blocks 2019-11-11 19:25:14 +00:00
permissionStore.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
smartcardManager.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
systemActions.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
util.js util: Don't wiggle when animations are disabled 2020-02-22 16:38:43 +00:00
weather.js js: Promisify async operations 2020-03-31 05:43:40 +00:00