Promise is a better API for supporting asynchronous code. https://bugzilla.gnome.org/show_bug.cgi?id=608450