MCPcopy
hub / github.com/perkeep/perkeep / Wait

Method Wait

cmd/pk-put/files.go:1162–1175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1160}
1161
1162func (t *TreeUpload) Wait() (*client.PutResult, error) {
1163 <-t.donec
1164 // If an error is waiting and we don't otherwise have one, use it:
1165 if t.err == nil {
1166 select {
1167 case t.err = <-t.errc:
1168 default:
1169 }
1170 }
1171 if t.err == nil && t.finalPutRes == nil {
1172 panic("Nothing ever set t.finalPutRes, but no error set")
1173 }
1174 return t.finalPutRes, t.err
1175}
1176
1177type byTypeAndName []os.FileInfo
1178

Callers 15

RunCommandMethod · 0.95
AccountsStatusMethod · 0.80
RunImporterAccountMethod · 0.80
importPhotosMethod · 0.80
rateLimitMethod · 0.80
TestImportAlbumsFunction · 0.80
ResultMethod · 0.80
metaMapMethod · 0.80
expandRulesMethod · 0.80
FetchMethod · 0.80
StatBlobsMethod · 0.80
StatBlobsMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestImportAlbumsFunction · 0.64
TestEncryptStressFunction · 0.64
TestAndroidCamputFileFunction · 0.64
killReindexFunction · 0.64
pkmountTestFunction · 0.64