XDracam / unity-corelibrary

Collection of classes and extension methods that make life with Unity3D more comfortable
MIT License
15 stars 3 forks source link

Async wait features #66

Open XDracam opened 4 years ago

XDracam commented 4 years ago

I want roughly the following:

await Wait.ForFrames(2);
foo();
await Wait.ForSeconds(1.3f);

This feature would use a TaskCompletionSource and the Coroutines system under the hood to provide non-blocking waiting in a linear way using the CLRs async continuations.