GNOME Bugzilla – Bug 623694
Feature Request: Add possibility to abort sorting a collection
Last modified: 2019-03-20 10:38:05 UTC
After discussing this on the mailing list, I was asked by Didier to put in a feature request for adding a way to abort sorting a collection. In my use case, I have millions of items and sorting them can sometimes take a while. In order to keep the user interface responsive, I would like to abort the sorting if the user clicks a button and decides to do something else. The result will be thrown away anyway. There are some workarounds for canceling a sort (wrapping the sorting in a async method with a Cancelable object, or simply create a new collection object and call it again), but it would be good if there was a cleaner way. Perhaps by using callbacks so its possible to get called every 100 ms during a sort, and return false if the sort should abort. But thats just an idea. Perhaps there are better ways of doing it. All users like responsive user interfaces, and using threads together with the option of aborting long operations is part of making that happen. :) Thank you! // Christer Nissen, Sweden
-- 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/libgee/issues/10.