Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GetAwaiter extension for UnityEngine.Coroutine objects #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Brice-xCIT
Copy link

@Brice-xCIT Brice-xCIT commented Feb 27, 2019

This PR enables awaiting on a coroutine object that has been created previously.

Example:

// start a coroutine
Coroutine coroutine = StartCoroutine(MyCoroutine());

// do things while the coroutine is running.
// ...

// now waits for the coroutine to complete.
await coroutine;

@Ujang360
Copy link

Ujang360 commented Apr 1, 2019

@svermeulen what do you think?

@chiuan
Copy link

chiuan commented Sep 17, 2019

good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants