We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f77669 + 64eb807 commit 5caf721Copy full SHA for 5caf721
UnityProject/Assets/Plugins/AsyncAwaitUtil/Source/TaskExtensions.cs
@@ -23,11 +23,10 @@ public static IEnumerator AsIEnumerator(this Task task)
23
}
24
25
public static IEnumerator<T> AsIEnumerator<T>(this Task<T> task)
26
- where T : class
27
{
28
while (!task.IsCompleted)
29
30
- yield return null;
+ yield return default(T);
31
32
33
if (task.IsFaulted)
0 commit comments