Skip to content

templates: Allow using promises in GJS

Sonny Piers requested to merge (removed):gjs-promises into main

Promises and by extension async/await is not usable without this.

See gjs#468 (closed)

I know this is not great to look at but it's the only option to make async JavaScript work as expected. We are discussing options to have a helper for this in GJS but we'll have to wait a couple of cycles before we can use it in GNOME Builder template anyway.

Here is a relevant Matrix discussion!$

cc @ebassi @ptomato

Edited by Sonny Piers

Merge request reports