Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 912 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 912 Bytes

Singleflight with Generics!

GoDoc

Package singleflight provides a duplicate function call suppression mechanism.

This fork adds generics support (Group[K comparable, V any] and Result[V any]) to the original x/sync/singleflight package.

Updates & Versioning

  • I will keep this package up-to-date with the original one, at least until x/sync/singleflight adds support for generics. If you notice an update before I do, please open an issue or submit a pull request.
  • Versions will be tagged to align with the same versioning as the x/sync/singleflight package.

Usage

For example usage, see: