Skip to content

Singleflight provides a duplicate function call suppression mechanism. Up-to-date fork that adds generics support (Group[K comparable, V any] and Result[V any]) to the original `golang.org/x/sync/singleflight` package.

License

Notifications You must be signed in to change notification settings

brunomvsouza/singleflight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Singleflight provides a duplicate function call suppression mechanism. Up-to-date fork that adds generics support (Group[K comparable, V any] and Result[V any]) to the original `golang.org/x/sync/singleflight` package.

Topics

Resources

License

Stars

Watchers

Forks

Languages