Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var cancellable = new GLib.Cancellable ();
- context.cancelled.connect(() => {
- cancellable.cancel ();
- });
- /* ... */
- if (!cancellable.is_cancelled ()) {
- this.results.present (this, context);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement