File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
UnityProject/Assets/Plugins/AsyncAwaitUtil/Source Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments