Skip to content

Commit

Permalink
Add a note about context.Deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
eapache committed Sep 18, 2024
1 parent ad3d1cf commit bc8cfd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deadline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ deadline

The deadline/timeout resiliency pattern for golang.

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.

Creating a deadline takes one parameter: how long to wait.

```go
Expand Down

0 comments on commit bc8cfd2

Please # to comment.