{"id":26061953,"url":"https://github.com/cloud-org/go-timewheel","last_synced_at":"2025-08-15T22:12:53.471Z","repository":{"id":57693775,"uuid":"478902968","full_name":"cloud-org/go-timewheel","owner":"cloud-org","description":"fork from rfyiamcool/go-timewheel and modify by ashing","archived":false,"fork":false,"pushed_at":"2022-04-07T09:23:37.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-12T09:09:25.534Z","etag":null,"topics":["go","timer","timewheel"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-07T08:54:01.000Z","updated_at":"2022-10-09T03:15:50.000Z","dependencies_parsed_at":"2022-09-26T21:00:53.893Z","dependency_job_id":null,"html_url":"https://github.com/cloud-org/go-timewheel","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-org%2Fgo-timewheel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-org%2Fgo-timewheel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-org%2Fgo-timewheel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-org%2Fgo-timewheel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud-org","download_url":"https://codeload.github.com/cloud-org/go-timewheel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242573488,"owners_count":20151707,"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":["go","timer","timewheel"],"created_at":"2025-03-08T15:48:47.265Z","updated_at":"2025-03-08T15:48:47.759Z","avatar_url":"https://github.com/cloud-org.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### go-timewheel\n\n自用魔改时间轮。\n\n#### usage\n\n```go\npackage main_test\n\nfunc TestTimeWheelAdd(t *testing.T) {\n\ttw, err := NewTimeWheel(1*time.Second, 3)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n\ttw.Start()\n\tdefer tw.Stop()\n\tvar wg sync.WaitGroup\n\twg.Add(1)\n\ttw.Add(0*time.Second, func() {\n\t\tdefer wg.Done()\n\t\tlog.Println(\"hello world\")\n\t})\n\twg.Wait()\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-org%2Fgo-timewheel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud-org%2Fgo-timewheel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-org%2Fgo-timewheel/lists"}