Skip to content

Commit

Permalink
make readme more detailed
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Feb 17, 2024
1 parent a7affac commit e778f24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
[![Go](https://github.com/janos/singleflight/workflows/Go/badge.svg)](https://github.com/janos/singleflight/actions?query=workflow%3AGo)

Package singleflight provides a duplicate function call suppression
mechanism similar to golang.org/x/sync/singleflight but with support
for context cancelation.
mechanism similar to [golang.org/x/sync/singleflight](https://pkg.go.dev/golang.org/x/sync/singleflight) but with support
for context cancelation. The context passed to the callback function is a context that preserves all values
from the passed context but is cancelled by the singleflight only when all
awaiting caller's contexts are cancelled.

## Installation

Expand Down

0 comments on commit e778f24

Please sign in to comment.