{"id":19898929,"url":"https://github.com/anamorphosee/jcontinue","last_synced_at":"2026-06-09T08:31:42.130Z","repository":{"id":130424113,"uuid":"52269086","full_name":"Anamorphosee/JContinue","owner":"Anamorphosee","description":"Java Continuation Library","archived":false,"fork":false,"pushed_at":"2016-05-09T20:08:23.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T06:42:43.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Anamorphosee.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-22T11:34:04.000Z","updated_at":"2023-02-22T10:03:15.000Z","dependencies_parsed_at":"2023-03-30T09:51:37.677Z","dependency_job_id":null,"html_url":"https://github.com/Anamorphosee/JContinue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anamorphosee/JContinue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anamorphosee%2FJContinue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anamorphosee%2FJContinue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anamorphosee%2FJContinue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anamorphosee%2FJContinue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anamorphosee","download_url":"https://codeload.github.com/Anamorphosee/JContinue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anamorphosee%2FJContinue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34098863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-12T20:06:09.258Z","updated_at":"2026-06-09T08:31:42.112Z","avatar_url":"https://github.com/Anamorphosee.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JContinue\nJava [Continuation](https://en.wikipedia.org/wiki/Continuation) Library\n\n## Usage example\n```java\npackage org.jcontinue.utils.test;\n\nimport org.jcontinue.continuation.Continuation;\nimport org.jcontinue.utils.ContinuationClassTransformerClassLoader;\nimport org.jcontinue.continuation.Task;\n\npublic class ReadmeExample {\n\n    public static void main(String[] args) throws Exception {\n        ClassLoader continuationClassLoader = new ContinuationClassTransformerClassLoader();\n\n        // transform ReadmeExample class for continuation\n        Class\u003c?\u003e transformedReadmeExample = continuationClassLoader.loadClass(ReadmeExample.class.getName());\n        Object transformedReadmeExampleInstance = transformedReadmeExample.newInstance();\n\n        // invoke 'performExample' method on transformed class\n        transformedReadmeExample.getMethod(\"performExample\").invoke(transformedReadmeExampleInstance);\n    }\n\n    public void performExample() {\n        ExampleTask task = new ExampleTask();\n        Continuation.Context context = Continuation.perform(task);\n        while (!context.isFinished()) {\n            System.out.println(\"counter: \" + task.counter);\n            context = Continuation.resume(context);\n        }\n    }\n\n    public static class ExampleTask implements Task {\n\n        public int counter;\n\n        @Override\n        public void perform() {\n            for (int i = 0; i \u003c 10; i++) {\n                setCounterAndSuspend(i);\n            }\n        }\n\n        private void setCounterAndSuspend(int counter) {\n            this.counter = counter;\n            Continuation.suspend();\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanamorphosee%2Fjcontinue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanamorphosee%2Fjcontinue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanamorphosee%2Fjcontinue/lists"}