After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623694 - Feature Request: Add possibility to abort sorting a collection
Feature Request: Add possibility to abort sorting a collection
Status: RESOLVED OBSOLETE
Product: libgee
Classification: Platform
Component: general
git master
Other Linux
: Normal enhancement
: 0.12
Assigned To: libgee-maint
libgee-maint
Depends on: 693455
Blocks: 696979
 
 
Reported: 2010-07-06 15:55 UTC by Christer Nissen
Modified: 2019-03-20 10:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christer Nissen 2010-07-06 15:55:52 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
Comment 1 GNOME Infrastructure Team 2019-03-20 10:38:05 UTC
-- 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.