mirror of https://github.com/Cysharp/UniTask
some fix
parent
6e80295ec7
commit
eb379903b8
|
@ -6,7 +6,7 @@ using System.Threading;
|
||||||
|
|
||||||
namespace UniRx.Async.Internal
|
namespace UniRx.Async.Internal
|
||||||
{
|
{
|
||||||
internal class ContinuationQueue
|
internal sealed class ContinuationQueue
|
||||||
{
|
{
|
||||||
const int MaxArrayLength = 0X7FEFFFFF;
|
const int MaxArrayLength = 0X7FEFFFFF;
|
||||||
const int InitialSize = 16;
|
const int InitialSize = 16;
|
||||||
|
|
|
@ -178,7 +178,7 @@ namespace UniRx.Async
|
||||||
public TResult GetResult(short token)
|
public TResult GetResult(short token)
|
||||||
{
|
{
|
||||||
ValidateToken(token);
|
ValidateToken(token);
|
||||||
if (!(completedCount == 0))
|
if (completedCount == 0)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("not yet completed.");
|
throw new InvalidOperationException("not yet completed.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue