Fix UniTask.Defer
parent
1d90a40f66
commit
f1ac469058
|
@ -204,7 +204,7 @@ namespace Cysharp.Threading.Tasks
|
||||||
if (f == null) throw new InvalidOperationException("Can't call twice.");
|
if (f == null) throw new InvalidOperationException("Can't call twice.");
|
||||||
|
|
||||||
task = f();
|
task = f();
|
||||||
awaiter = f().GetAwaiter();
|
awaiter = task.GetAwaiter();
|
||||||
return task.Status;
|
return task.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ namespace Cysharp.Threading.Tasks
|
||||||
if (f == null) throw new InvalidOperationException("Can't call twice.");
|
if (f == null) throw new InvalidOperationException("Can't call twice.");
|
||||||
|
|
||||||
task = f();
|
task = f();
|
||||||
awaiter = f().GetAwaiter();
|
awaiter = task.GetAwaiter();
|
||||||
return task.Status;
|
return task.Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue