GNOME Bugzilla – Bug 773254
Improve GTask wrapping
Last modified: 2018-01-10 20:57:14 UTC
The run_in_thread() and run_in_thread_sync() methods are a bit weird and PyGObject cannot use set_task_data().
Created attachment 338072 [details] [review] overrides: Improve GTask wrapping The run_in_thread() and run_in_thread_sync() methods difficult to use because set_task_data() cannot be used.
Created attachment 338073 [details] [review] tests: Add tests for GTask I had to test these standalone due to the missing the required dbus helper, can someone check that these work in the PyGObject test suite? Standalone they work just fine.
Created attachment 338116 [details] [review] tests: Add tests for GTask v2 This now includes tests for return_error(), cancellation and report_error().
Both patches look good to me. Anyone else closer to the project mind ACKing?
Review of attachment 338072 [details] [review]: Does task_data just show up as None? Won't this be an API break?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/125.