{"id":19030302,"url":"https://github.com/syocy/ticker-hs","last_synced_at":"2026-03-09T22:02:54.406Z","repository":{"id":56880475,"uuid":"100815002","full_name":"syocy/ticker-hs","owner":"syocy","description":"A utility for concurrent programming in Haskell, insipired by Ticker in golang.","archived":false,"fork":false,"pushed_at":"2017-09-13T07:35:24.000Z","size":7,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-08T16:16:06.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/syocy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-19T18:53:32.000Z","updated_at":"2021-05-11T22:02:32.000Z","dependencies_parsed_at":"2022-08-20T23:10:38.435Z","dependency_job_id":null,"html_url":"https://github.com/syocy/ticker-hs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syocy/ticker-hs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syocy%2Fticker-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syocy%2Fticker-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syocy%2Fticker-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syocy%2Fticker-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syocy","download_url":"https://codeload.github.com/syocy/ticker-hs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syocy%2Fticker-hs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-08T21:17:20.166Z","updated_at":"2026-03-09T22:02:54.387Z","avatar_url":"https://github.com/syocy.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Travis](https://img.shields.io/travis/syocy/ticker-hs.svg)](https://travis-ci.org/syocy/ticker-hs)\n[![Hackage](https://img.shields.io/hackage/v/ticker.svg)](https://hackage.haskell.org/package/ticker)\n\n# ticker\n\nA utility of concurrent programming in Haskell, inspired by [Ticker](https://golang.org/pkg/time/#Ticker) in Go.\n\n\n```haskell\nimport Control.Concurrent.Ticker (newTicker)\nimport Control.Concurrent.Chan (getChanContents)\nimport Control.Concurrent.Async (async, cancel)\nimport Control.Monad (forM_)\n\nmain :: IO ()\nmain = do\n  (chan, cancelTicker) \u003c- newTicker (10^3 * 100) -- tick rate: 100ms\n  chanStream \u003c- getChanContents chan\n  thread \u003c- async $ forM_ chanStream $ \\_ -\u003e do\n    putStr \"Tick!\"\n  threadDelay (10^3 * 350) -- wait 3 ticks\n  putStrLn \"\"\n  cancel thread\n  cancelTicker\n  \n-- Tick!Tick!Tick!\n```\n\nMore functions are defined in `src/Control/Concurrent/Ticker.hs`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyocy%2Fticker-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyocy%2Fticker-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyocy%2Fticker-hs/lists"}