Opened 4 weeks ago

Last modified 4 weeks ago

#2965 accepted feature request

Cancelable Save (to File) Command

Reported by: pfleck Owned by: pfleck
Priority: medium Milestone: HeuristicLab 3.3.16
Component: Persistence Version: branch
Keywords: Cc:

Description

After the improvements in #2845, we should make the "Save Item"-progress cancelable. This is especially helpful for large files when someone accidentally pressed Ctrl+S.

However, we first need a way to cancel the serialization progress, therefore the persistence has to be slightly adapted, by passing a CancellationToken into the corresponding methods.

Attachments (1)

CancelableSaveFile.patch (20.6 KB) - added by pfleck 4 weeks ago.

Download all attachments as: .zip

Change History (3)

Changed 4 weeks ago by pfleck

comment:1 Changed 4 weeks ago by pfleck

  • Status changed from new to accepted
  • Version set to branch

r16321 branched trunk

comment:2 Changed 4 weeks ago by pfleck

r16325

  • Added CancelationTokens for the Save and Serialize methods.
  • Fixed a potential temp-file-leak when replacing the old file with the new one after serialization.
Note: See TracTickets for help on using tickets.