Skip to content

Commit 675a336

Browse files
committed
waitstatus: document nil can be returned
1 parent d472f6f commit 675a336

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/disk/waitstatus/interface.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const (
1616

1717
type StatusWaiter[T any] interface {
1818
// WaitFor waits until the pred returns true for the specified id.
19+
//
20+
// returns (nil, nil) if the specified id is not found.
1921
WaitFor(ctx context.Context, id string, pred StatusPredicate[*T]) (*T, error)
2022
}
2123

0 commit comments

Comments
 (0)