- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for getDeadline (0.48 sec)
-
internal/grid/grid.go
} return b, err } read += int64(n) if want >= 0 && read == want { // No need to read more... return b, nil } } } // getDeadline will truncate the deadline so it is at least 1ms and at most MaxDeadline. func getDeadline(d time.Duration) time.Duration { if d < time.Millisecond { return 0 } if d > MaxDeadline { return MaxDeadline } return d }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Mon Jul 29 18:10:04 UTC 2024 - 6.9K bytes - Viewed (0)