{"id":20174129,"url":"https://github.com/ma91n/delaytaskwatcher","last_synced_at":"2025-10-26T13:08:17.562Z","repository":{"id":150360861,"uuid":"356453884","full_name":"ma91n/delaytaskwatcher","owner":"ma91n","description":"goroutine delay task checker","archived":false,"fork":false,"pushed_at":"2021-04-11T13:43:19.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T16:17:40.884Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ma91n.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":"2021-04-10T03:00:49.000Z","updated_at":"2021-04-11T13:43:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b703c33-5130-4dc9-803c-0a8344e96008","html_url":"https://github.com/ma91n/delaytaskwatcher","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma91n%2Fdelaytaskwatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma91n%2Fdelaytaskwatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma91n%2Fdelaytaskwatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma91n%2Fdelaytaskwatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ma91n","download_url":"https://codeload.github.com/ma91n/delaytaskwatcher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241610996,"owners_count":19990507,"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":[],"created_at":"2024-11-14T01:41:34.709Z","updated_at":"2025-10-26T13:08:17.497Z","avatar_url":"https://github.com/ma91n.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# delaytaskwatcher\ngoroutine delay task checker\n\n## Usage\n\nInstallation.\n\n```bash\ngo get github.com/ma91n/delaytaskwatcher\n```\n\nUse delaytaskwatcher like below with go func.\n\n```go\npackage main\n\nimport (\n\t\"github.com/ma91n/delaytaskwatcher\"\n)\n\nfunc main() {\n    go delaytaskwatcher.Watch()\n    \n    heavyTask()\n}\n```\n\nOutput is below.\n\n```\n\u003ego run exmaple.go\n2021/04/10 13:21:38 task process time error: 3s has passed\ngoroutine profile: total 2\n1 @ 0xd2b01a 0xd56405 0xdd24f9 0xdd24e6 0xdd2432 0xd2abf6 0xd592a1\n#       0xd56404        time.Sleep+0xe4         runtime/time.go:193\n#       0xdd24f8        main.heavyTaskMain+0x98 github.com/ma91n/delaytaskwatcher/example/exmaple.go:24\n#       0xdd24e5        main.heavyTask+0x85     github.com/ma91n/delaytaskwatcher/example/exmaple.go:19\n#       0xdd2431        main.main+0x51          github.com/ma91n/delaytaskwatcher/example/exmaple.go:13\n#       0xd2abf5        runtime.main+0x255      runtime/proc.go:225\n\n1 @ 0xd53725 0xdc6ab5 0xdc6867 0xdc3338 0xdd23a5 0xd592a1\n#       0xd53724        runtime/pprof.runtime_goroutineProfileWithLabels+0x64   runtime/mprof.go:716\n#       0xdc6ab4        runtime/pprof.writeRuntimeProfile+0xd4                  runtime/pprof/pprof.go:724\n#       0xdc6866        runtime/pprof.writeGoroutine+0xa6                       runtime/pprof/pprof.go:684\n#       0xdc3337        runtime/pprof.(*Profile).WriteTo+0x3f7                  runtime/pprof/pprof.go:331\n#       0xdd23a4        github.com/ma91n/delaytaskwatcher.Watch.func1+0x104     github.com/ma91n/delaytaskwatcher/watcher.go:26\n```\n\nYou can know bottleneck where in your code.\n\n## Options\n\n```go\n    go delaytaskwatcher.Watch(delaytaskwatcher.Options{\n        Limit: 10 *time.Second,\n        })\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma91n%2Fdelaytaskwatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fma91n%2Fdelaytaskwatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma91n%2Fdelaytaskwatcher/lists"}