Skip to content

Commit

Permalink
Fixed errors with UniTask
Browse files Browse the repository at this point in the history
  • Loading branch information
pnarimani authored and Mathijs-Bakker committed Nov 12, 2024
1 parent 5b1821d commit 0b79c49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public async

if (instance is IAsyncInject asyncInject)
{
await asyncInject;
await asyncInject.Task;
instance = asyncInject.Result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected async

if (result is IAsyncInject asyncInject)
{
await asyncInject;
await asyncInject.Task;
result = asyncInject.Result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public IEnumerator FactoryInstantiatePrefabForComponent_Pooled()
}

#if UNITASK_PLUGIN
private static async void ContinueTaskWith<T>(UniTask<T>, Action<T> continuation)
private static async void ContinueTaskWith<T>(UniTask<T> task, Action<T> continuation)
#else
private static async void ContinueTaskWith<T>(Task<T> task, Action<T> continuation)
#endif
Expand Down

0 comments on commit 0b79c49

Please sign in to comment.