Skip to content

Commit bc8cfd2

Browse files
authored
Add a note about context.Deadline
1 parent ad3d1cf commit bc8cfd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deadline/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ deadline
77

88
The deadline/timeout resiliency pattern for golang.
99

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+
1012
Creating a deadline takes one parameter: how long to wait.
1113

1214
```go

0 commit comments

Comments
 (0)