mirror of
https://github.com/restic/restic.git
synced 2026-05-28 04:35:41 -04:00
archiver: note that fileSaver.Save expects non-blocking callbacks
This commit is contained in:
parent
5105015f5d
commit
bd945df2ea
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ type fileCompleteFunc func(*data.Node, ItemStats)
|
|||
// Save stores the file f and returns the data once it has been completed. The
|
||||
// file is closed by Save. completeReading is only called if the file was read
|
||||
// successfully. complete is always called. If completeReading is called, then
|
||||
// this will always happen before calling complete.
|
||||
// this will always happen before calling complete. The callbacks must not block.
|
||||
func (s *fileSaver) Save(ctx context.Context, snPath string, target string, file fs.File, start func(), completeReading func(), complete fileCompleteFunc) futureNode {
|
||||
fn, ch := newFutureNode()
|
||||
job := saveFileJob{
|
||||
|
|
|
|||
Loading…
Reference in a new issue