mirror of https://github.com/Cysharp/UniTask
error detail
parent
c1f75d9ebd
commit
c65ae8d18e
|
@ -229,7 +229,7 @@ namespace Cysharp.Threading.Tasks
|
||||||
ValidateToken(token);
|
ValidateToken(token);
|
||||||
if (completedCount == 0)
|
if (completedCount == 0)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("not yet completed.");
|
throw new InvalidOperationException("Not yet completed, UniTask only allow to use await.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error != null)
|
if (error != null)
|
||||||
|
@ -288,7 +288,7 @@ namespace Cysharp.Threading.Tasks
|
||||||
// It will cause call OnCompleted multiple time, invalid.
|
// It will cause call OnCompleted multiple time, invalid.
|
||||||
if (!ReferenceEquals(oldContinuation, UniTaskCompletionSourceCoreShared.s_sentinel))
|
if (!ReferenceEquals(oldContinuation, UniTaskCompletionSourceCoreShared.s_sentinel))
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException();
|
throw new InvalidOperationException("Already continuation registered, can not await twice or get Status after await.");
|
||||||
}
|
}
|
||||||
|
|
||||||
continuation(state);
|
continuation(state);
|
||||||
|
|
Loading…
Reference in New Issue