{"id":17129600,"url":"https://github.com/janos/singleflight","last_synced_at":"2025-07-13T02:31:55.103Z","repository":{"id":45772825,"uuid":"184654385","full_name":"janos/singleflight","owner":"janos","description":"Duplicate function call suppression with context","archived":false,"fork":false,"pushed_at":"2024-09-03T17:26:16.000Z","size":26,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-13T04:03:01.197Z","etag":null,"topics":["context","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-02T21:33:06.000Z","updated_at":"2024-09-30T17:34:33.000Z","dependencies_parsed_at":"2023-12-05T11:47:28.495Z","dependency_job_id":"d8522e99-596b-4d5f-b3a3-05ebecb0e53f","html_url":"https://github.com/janos/singleflight","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fsingleflight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fsingleflight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fsingleflight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janos%2Fsingleflight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janos","download_url":"https://codeload.github.com/janos/singleflight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225850272,"owners_count":17534066,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["context","go","golang"],"created_at":"2024-10-14T19:10:02.699Z","updated_at":"2024-11-22T06:03:47.994Z","avatar_url":"https://github.com/janos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Singleflight\n\n[![GoDoc](https://godoc.org/resenje.org/singleflight?status.svg)](https://godoc.org/resenje.org/singleflight)\n[![Go](https://github.com/janos/singleflight/workflows/Go/badge.svg)](https://github.com/janos/singleflight/actions?query=workflow%3AGo)\n\nPackage singleflight provides a duplicate function call suppression \nmechanism similar to [golang.org/x/sync/singleflight](https://pkg.go.dev/golang.org/x/sync/singleflight) but with:\n\n- support for context cancelation. The context passed to the callback function is a context that preserves all values\nfrom the passed context but is cancelled by the singleflight only when all awaiting caller's contexts are cancelled.\n- support for generics.\n\n## Installation\n\nRun `go get resenje.org/singleflight` from command line.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanos%2Fsingleflight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanos%2Fsingleflight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanos%2Fsingleflight/lists"}