Skip to content

Commit c547847

Browse files
committed
Tweak to comment
1 parent 7e33876 commit c547847

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnityProject/Assets/Plugins/AsyncAwaitUtil/Source/AwaitExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public static TaskAwaiter<int> GetAwaiter(this Process process)
2222
return tcs.Task.GetAwaiter();
2323
}
2424

25-
// Any time you call an async method from sync code, you should call this method
26-
// as well, otherwise any exceptions that occur inside the async code will not be
27-
// received by Unity. (Unity only observes errors for async methods that have return type void)
25+
// Any time you call an async method from sync code, you can either use this wrapper
26+
// method or you can define your own `async void` method that performs the await
27+
// on the given Task
2828
public static async void WrapErrors(this Task task)
2929
{
3030
await task;

0 commit comments

Comments
 (0)