1. 30 Apr, 2022 1 commit
  2. 29 Apr, 2022 3 commits
  3. 28 Apr, 2022 4 commits
  4. 29 Mar, 2022 2 commits
  5. 28 Mar, 2022 1 commit
    • Sergio Costas's avatar
      Add support for async calls in DBusProxyWrapper · 7087f050
      Sergio Costas authored
      Currently, DBusProxyWrapper dynamically creates two methods for
      each method available in the DBus interface: one with the suffix
      Sync (which blocks the calling thread until the call returns),
      and another with the suffix Remote (which accepts a callback,
      called when the DBus calls returns).
      
      Since GJS has support for async/await, it is a good idea to use
      them for DBus. Unfortunately, that means creating some plumbing
      using Promises. It is not complex, but it is a repetitive task.
      
      This MR fixes this by adding a third method, suffixed with
      Async, that returns a Promise that calls the DBus method and
      returns the result with `resolve` (or `reject` if an error
      occurs). This allows to call a DBus method from an async
      function and wait for the result using `await`.
      7087f050
  6. 24 Mar, 2022 1 commit
  7. 23 Mar, 2022 2 commits
  8. 19 Mar, 2022 4 commits
  9. 10 Mar, 2022 1 commit
  10. 06 Mar, 2022 9 commits
  11. 05 Mar, 2022 3 commits
  12. 04 Mar, 2022 9 commits