{"id":24545387,"url":"https://github.com/bells307/asynk-rt","last_synced_at":"2026-01-31T18:05:04.793Z","repository":{"id":230867510,"uuid":"780315345","full_name":"bells307/asynk-rt","owner":"bells307","description":"Rust multithread asynchronous runtime and reactor","archived":false,"fork":false,"pushed_at":"2024-12-03T05:50:41.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T03:13:47.398Z","etag":null,"topics":["rust","rust-async","rust-runtime"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/bells307.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,"zenodo":null}},"created_at":"2024-04-01T07:54:27.000Z","updated_at":"2024-12-03T05:50:45.000Z","dependencies_parsed_at":"2024-04-01T09:24:56.140Z","dependency_job_id":"c420574b-a978-4086-8f3b-9a1b5e7b1c9e","html_url":"https://github.com/bells307/asynk-rt","commit_stats":null,"previous_names":["bells307/asynk-rt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bells307/asynk-rt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fasynk-rt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fasynk-rt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fasynk-rt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fasynk-rt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bells307","download_url":"https://codeload.github.com/bells307/asynk-rt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bells307%2Fasynk-rt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"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":["rust","rust-async","rust-runtime"],"created_at":"2025-01-22T21:19:40.993Z","updated_at":"2026-01-31T18:05:04.776Z","avatar_url":"https://github.com/bells307.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asynk\nRust multithread asynchronous runtime and reactor\n\n## Example\n```rust\nuse futures::future;\nuse futures_timer::Delay;\nuse std::{\n    sync::{\n        atomic::{AtomicU32, Ordering},\n        Arc,\n    },\n    time::Duration,\n};\n\nfn main() {\n    asynk::builder().build().unwrap();\n    asynk::block_on(main_future()).unwrap();\n}\n\nasync fn main_future() {\n    let val = Arc::new(AtomicU32::new(0));\n    let expected_val = 10_000;\n\n    let handles = (0..expected_val)\n        .map(|_| Arc::clone(\u0026val))\n        .map(|val| {\n            asynk::spawn(async move {\n                // some computations ...\n                Delay::new(Duration::from_secs(1)).await;\n                val.fetch_add(1, Ordering::SeqCst);\n            })\n        })\n        .collect::\u003cVec\u003c_\u003e\u003e();\n\n    future::join_all(handles).await;\n\n    assert_eq!(val.load(Ordering::SeqCst), expected_val);\n}\n```\n\n# asynk-hyper\n\n[Hyper](https://github.com/hyperium/hyper) integration with `asynk` runtime\n\n## Example\n\n```rust\nuse asynk_hyper::TcpListener;\nuse futures::StreamExt;\nuse http_body_util::Full;\nuse hyper::{body::Bytes, server::conn::http1, service::service_fn, Request, Response};\nuse std::convert::Infallible;\n\nconst SERVER_SOCK_ADDR: \u0026str = \"127.0.0.1:8040\";\n\nfn main() {\n    asynk::builder().build().unwrap();\n    asynk::block_on(server()).unwrap();\n}\n\nasync fn server() {\n    let addr = SERVER_SOCK_ADDR.parse().unwrap();\n\n    let listener = TcpListener::bind(addr).unwrap();\n    let mut accept = listener.accept();\n\n    while let Some(res) = accept.next().await {\n        // Spawn new task for the connection\n        asynk::spawn(async move {\n            // Accept the connection\n            let (stream, _) = res.unwrap();\n\n            if let Err(e) = http1::Builder::new()\n                .serve_connection(stream, service_fn(hello))\n                .await\n            {\n                eprintln!(\"error serving connection: {:?}\", e);\n            }\n        });\n    }\n}\n\nasync fn hello(_: Request\u003cimpl hyper::body::Body\u003e) -\u003e Result\u003cResponse\u003cFull\u003cBytes\u003e\u003e, Infallible\u003e {\n    Ok(Response::new(Full::new(Bytes::from(\n        \"\u003ch1\u003eHello, World!\u003c/h1\u003e\",\n    ))))\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbells307%2Fasynk-rt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbells307%2Fasynk-rt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbells307%2Fasynk-rt/lists"}