Skip to content

Instantly share code, notes, and snippets.

@sdether
Created January 12, 2012 06:57
Show Gist options
  • Select an option

  • Save sdether/1599115 to your computer and use it in GitHub Desktop.

Select an option

Save sdether/1599115 to your computer and use it in GitHub Desktop.
public IEnumerator SampleCoroutine(Coordinator<T> coordinator) {
while(someCondition) {
// do some work
// yield execution to coordinator
yield return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment