You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: deadline/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ deadline
7
7
8
8
The deadline/timeout resiliency pattern for golang.
9
9
10
+
Note that the golang standard library now offers [`context.withDeadline`](https://pkg.go.dev/context#example-WithDeadline) with very similar functionality. This `deadline` package will probably be deprecated and removed in some future version.
11
+
10
12
Creating a deadline takes one parameter: how long to wait.
0 commit comments