766314acb2
Move inline anonymous function to be its own. This method will become asynchronous in following commits. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2508>