MCPcopy Index your code
hub / github.com/tailscale/tailscale / waitForFile

Function waitForFile

cmd/tailscale/cli/file.go:834–847  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

832}
833
834func waitForFile(ctx context.Context) error {
835 for {
836 ff, err := localClient.AwaitWaitingFiles(ctx, time.Hour)
837 if len(ff) > 0 {
838 return nil
839 }
840 if err := ctx.Err(); err != nil {
841 return err
842 }
843 if err != nil && !errors.Is(err, context.DeadlineExceeded) && !errors.Is(err, context.Canceled) {
844 return err
845 }
846 }
847}

Callers 1

runFileGetOneBatchFunction · 0.85

Calls 3

AwaitWaitingFilesMethod · 0.45
ErrMethod · 0.45
IsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…