Skip to content

Commit

Permalink
Revert "Merge pull request modesttree#11 from ChronosWS/master"
Browse files Browse the repository at this point in the history
This reverts commit 386897a, reversing
changes made to 5caf721.
  • Loading branch information
svermeulen committed Jan 4, 2019
1 parent 386897a commit 5f948fd
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,6 @@ public static SimpleCoroutineAwaiter<AsyncOperation> GetAwaiter(this AsyncOperat
return GetAwaiterReturnSelf(instruction);
}

public static TaskAwaiter<TResult> GetAwaiter<TResult>(this IAsyncOperation<TResult> op)
{
var tcs = new TaskCompletionSource<TResult>();
op.Completed += r =>
{
if (r.OperationException != null)
{
tcs.SetException(r.OperationException);
}
else
{
tcs.SetResult(r.Result);
}
};
return tcs.Task.GetAwaiter();
}

public static SimpleCoroutineAwaiter<UnityEngine.Object> GetAwaiter(this ResourceRequest instruction)
{
var awaiter = new SimpleCoroutineAwaiter<UnityEngine.Object>();
Expand Down

0 comments on commit 5f948fd

Please sign in to comment.