cysharp/unitask ? reverse-engineered prompt

Reverse engineered prompt

Build me a Unity async helper package that makes loading assets, web requests, scene changes, and coroutines feel like normal await code, but without extra allocations or unnecessary threading. I want to be able to write simple methods that return a lightweight task type, await Unity operations directly, and use things like delay, next frame, fixed update, end of frame, wait until, and cancellation tied to a GameObject’s lifetime.

It should also support running work on the main thread or thread pool when needed, let me await multiple async operations together, and include a few nice extras like async events, async enumerable style helpers, and a way to track unfinished tasks so leaks are easier to spot.

Please make it work cleanly in Unity, keep it fast, and make the API feel natural for someone replacing a lot of coroutine code. If you need to check current Unity docs or compatibility details, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab