{"id":19186868,"url":"https://github.com/dougeverly/delayedthread","last_synced_at":"2026-06-24T00:03:37.890Z","repository":{"id":9320419,"uuid":"11163783","full_name":"DougEverly/DelayedThread","owner":"DougEverly","description":"DelayedThread constructs threads with delayed execution.","archived":false,"fork":false,"pushed_at":"2013-07-04T13:49:27.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-04T05:43:05.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/DougEverly.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":"2013-07-03T23:49:46.000Z","updated_at":"2013-07-04T13:49:28.000Z","dependencies_parsed_at":"2022-07-31T16:09:01.270Z","dependency_job_id":null,"html_url":"https://github.com/DougEverly/DelayedThread","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2FDelayedThread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2FDelayedThread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2FDelayedThread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DougEverly%2FDelayedThread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DougEverly","download_url":"https://codeload.github.com/DougEverly/DelayedThread/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240263235,"owners_count":19773765,"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-09T11:16:58.998Z","updated_at":"2026-06-22T03:30:16.631Z","avatar_url":"https://github.com/DougEverly.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"DelayedThread\n=============\n\nDelayedThread constructs threads with delayed execution.\n\nUsage\n-----\n\n```ruby\n\nd = DelayedThread.new\n\n# Add a delayed thread\n\nd.delayed_thread do\n  5.times do |x|\n    puts x.to_s\n    sleep 1\n  end\nend\n\n# Add another delayed thread\n\nd.delayed_thread do\n  5.times do |x|\n    puts (x * 2).to_s\n    sleep 1\n  end\nend\n\n# wait some time\n\nsleep 2\n\n# start delayed thread execution\n\nd.start\n\n# join delayed threads\n\nd.join\n\n\n```\n\nDo not delay threads\n\n```ruby\nd.delayed = false\n```\n    \nGet list of delayed threads\n\n```ruby\nd.threads # =\u003e Array\n```\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdougeverly%2Fdelayedthread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdougeverly%2Fdelayedthread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdougeverly%2Fdelayedthread/lists"}