Class TaskExtensions
System.Threading.Tasks.Task Based Extension Methods
Inheritance
System.Object
TaskExtensions
Namespace: GDX.Threading
Syntax
public static class TaskExtensions
Methods
| Improve this Doc View SourceAsIEnumerator(Task)
Wraps a System.Threading.Tasks.Task for use in a coroutine.
Declaration
public static IEnumerator AsIEnumerator(this Task task)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.Tasks.Task | task | An established System.Threading.Tasks.Task. |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator for use with coroutines. |
Remarks
Don't use coroutines.