{"id":16774530,"url":"https://github.com/parasyte/egui-tokio-example","last_synced_at":"2025-03-22T00:30:46.489Z","repository":{"id":148708693,"uuid":"528281960","full_name":"parasyte/egui-tokio-example","owner":"parasyte","description":"Example showing how to use tokio and egui together.","archived":false,"fork":false,"pushed_at":"2022-08-24T06:05:57.000Z","size":17,"stargazers_count":46,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T06:22:45.622Z","etag":null,"topics":["egui","rust","tokio"],"latest_commit_sha":null,"homepage":"https://github.com/emilk/egui/discussions/521","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/parasyte.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":"2022-08-24T05:41:59.000Z","updated_at":"2025-01-06T15:34:59.000Z","dependencies_parsed_at":"2023-05-28T17:30:15.671Z","dependency_job_id":null,"html_url":"https://github.com/parasyte/egui-tokio-example","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/parasyte%2Fegui-tokio-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasyte%2Fegui-tokio-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasyte%2Fegui-tokio-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasyte%2Fegui-tokio-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parasyte","download_url":"https://codeload.github.com/parasyte/egui-tokio-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890102,"owners_count":20527030,"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":["egui","rust","tokio"],"created_at":"2024-10-13T06:49:25.002Z","updated_at":"2025-03-22T00:30:46.483Z","avatar_url":"https://github.com/parasyte.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example using `tokio` with `egui`\n\nThis example uses `reqwest` to send an HTTP request to [httpbin](https://httpbin.org/). The parsed response contains an increment value (as provided in the request) that is finally sent to the main GUI thread.\n\n## Disclaimer\n\nThis is the worst possible way to increment a counter, but it demonstrates awaiting async tasks without blocking the main GUI thread. It is also a very poor use of `tokio`. Awaiting the future in a thread with `pollster` is both easier and just as efficient. But if you _actually_ need `tokio`, this is how to use it with `egui`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparasyte%2Fegui-tokio-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparasyte%2Fegui-tokio-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparasyte%2Fegui-tokio-example/lists"}