{"id":19838963,"url":"https://github.com/objectionary/eo-threads","last_synced_at":"2025-07-17T12:39:54.238Z","repository":{"id":41654693,"uuid":"510102039","full_name":"objectionary/eo-threads","owner":"objectionary","description":"EO Objects for Managing Execution Threads","archived":false,"fork":false,"pushed_at":"2025-07-13T17:47:31.000Z","size":178,"stargazers_count":14,"open_issues_count":10,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-13T19:34:50.435Z","etag":null,"topics":["eolang","oop","threads"],"latest_commit_sha":null,"homepage":"","language":"Java","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/objectionary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2022-07-03T18:17:50.000Z","updated_at":"2025-04-12T02:23:40.000Z","dependencies_parsed_at":"2023-10-17T02:17:35.458Z","dependency_job_id":"6c9b1fba-c19a-4013-bc46-53c031b30530","html_url":"https://github.com/objectionary/eo-threads","commit_stats":{"total_commits":161,"total_committers":3,"mean_commits":"53.666666666666664","dds":"0.20496894409937894","last_synced_commit":"c069d2e86bcec349317fed44e0b9fc90ebecdebd"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/objectionary/eo-threads","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Feo-threads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Feo-threads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Feo-threads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Feo-threads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectionary","download_url":"https://codeload.github.com/objectionary/eo-threads/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Feo-threads/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265198116,"owners_count":23726435,"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":["eolang","oop","threads"],"created_at":"2024-11-12T12:19:44.449Z","updated_at":"2025-07-17T12:39:54.211Z","avatar_url":"https://github.com/objectionary.png","language":"Java","readme":"\u003cimg src=\"https://www.yegor256.com/images/books/elegant-objects/cactus.svg\" height=\"92px\" /\u003e\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![DevOps By Rultor.com](http://www.rultor.com/b/objectionary/eo-threads)](http://www.rultor.com/p/objectionary/eo-threads)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/objectionary/eo-threads/actions/workflows/mvn.yml/badge.svg?branch=master)](https://github.com/objectionary/eo-threads/actions/workflows/mvn.yml)\n[![PDD status](http://www.0pdd.com/svg?name=objectionary/eo-threads)](http://www.0pdd.com/p?name=objectionary/eo-threads)\n[![codecov](https://codecov.io/gh/objectionary/eo-threads/branch/master/graph/badge.svg)](https://codecov.io/gh/objectionary/eo-threads)\n[![Maven Central](https://img.shields.io/maven-central/v/org.eolang/eo-threads.svg)](https://maven-badges.herokuapp.com/maven-central/org.eolang/eo-threads)\n[![Hits-of-Code](https://hitsofcode.com/github/objectionary/eo-threads)](https://hitsofcode.com/view/github/objectionary/eo-threads)\n![Lines of code](https://img.shields.io/tokei/lines/github/objectionary/eo-threads)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/objectionary/eo-threads/blob/master/LICENSE.txt)\n\n[EO](https://www.eolang.org) objects for managing execution threads.\n\nTo run slow code in a new thread and wait for its finish in a loop:\n\n```\nwhile.\n  is-running.\n    start.\n      QQ.threads.thread \u003e t\n        very-slow-object\n  [i]\n    seq \u003e @\n      QQ.io.stdout\n        \"still waiting...\"\n      QQ.threads.sleep\n        100\n      if.\n        i.gt 10\n        t.stop\n        TRUE\n```\n\nThe object `thread` has attributes:\n  * free attribute `slow` to set a task to the thread.\n  * `started` starts the thread or does nothing if it's already running, returns the `thread`\n  * `is-running` is TRUE if it is still working\n  * `stop` informs the `thread` it must be terminated.\n  * `join` returns the result of dataization `slow`.\n\nDataization of the `thread.join` object means dataized `slow`.\nIf the thread is terminated, dataization returns `error`.\n\n## How to Contribute\n\nFork repository, make changes, send us a pull request.\nWe will review your changes and apply them to the `master` branch shortly,\nprovided they don't violate our quality standards. To avoid frustration,\nbefore sending us your pull request please run full Maven build:\n\n```bash\n$ mvn clean install -Pqulice\n```\n\nYou will need Maven 3.3+ and Java 8+.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Feo-threads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectionary%2Feo-threads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Feo-threads/lists"}