{"id":19489041,"url":"https://github.com/comradevanti/totask.asyncoperation","last_synced_at":"2026-05-16T19:06:28.035Z","repository":{"id":108749368,"uuid":"485321816","full_name":"ComradeVanti/ToTask.AsyncOperation","owner":"ComradeVanti","description":"A unity package for converting async-op objects to tasks","archived":false,"fork":false,"pushed_at":"2024-03-19T10:30:24.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T00:14:01.706Z","etag":null,"topics":["async","task","unity","utility"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ComradeVanti.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2022-04-25T10:19:00.000Z","updated_at":"2022-09-02T12:33:40.000Z","dependencies_parsed_at":"2023-06-04T18:15:18.667Z","dependency_job_id":null,"html_url":"https://github.com/ComradeVanti/ToTask.AsyncOperation","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ComradeVanti/ToTask.AsyncOperation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeVanti%2FToTask.AsyncOperation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeVanti%2FToTask.AsyncOperation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeVanti%2FToTask.AsyncOperation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeVanti%2FToTask.AsyncOperation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComradeVanti","download_url":"https://codeload.github.com/ComradeVanti/ToTask.AsyncOperation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComradeVanti%2FToTask.AsyncOperation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33115439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: 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":["async","task","unity","utility"],"created_at":"2024-11-10T21:07:08.168Z","updated_at":"2026-05-16T19:06:27.995Z","avatar_url":"https://github.com/ComradeVanti.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# ToTask.AsyncOperation\n\n[![openupm](https://img.shields.io/npm/v/dev.comradevanti.totask.asyncoperation?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/dev.comradevanti.totask.asyncoperation/)\n\nUnity package for converting builtin `AsyncOperation` objects to .Net Tasks.\n\n**⚠️ Development is paused ⚠️**  \nNo new features will be added or bugs fixed unless requested through an issue.  \nIf you wish to fork this repository and continue the work, you are very welcome\nto do so.\n\n## Installation\n\n\nInstall via [OpenUPM](https://openupm.com) using \n`openupm add dev.comradevanti.totask.asyncoperation`\n\n## Usage\n\nSimply add `.ToTask()` to the operation object in order to await it. This\nwill create a value-less `Task`. If you want to add a result-value to the\ntask, you can call one of the overloads which allow you to specify one.\n\n```\n// Example operation\nvar op = SceneManager.LoadSceneAsync(\"MyScene\"); \n\n// Simple value-less task\nawait op.ToTask(); \n\n// Await the task with a specific result value\nvar v1 = await op.ToTask(5); \n\n// Await the task with the result being calculated by the given function\nvar v2 = await op.ToTask(() =\u003e \"done\"); \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomradevanti%2Ftotask.asyncoperation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomradevanti%2Ftotask.asyncoperation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomradevanti%2Ftotask.asyncoperation/lists"}