Distinct, Except, Intersect, Union

This commit is contained in:
neuecc
2020-05-11 15:53:27 +09:00
parent 8ef7a66081
commit b20b37e7a5
11 changed files with 485 additions and 3912 deletions

View File

@@ -100,10 +100,18 @@ namespace Cysharp.Threading.Tasks.Linq
}
completionSource.Reset();
SourceMoveNext();
if (!OnFirstIteration())
{
SourceMoveNext();
}
return new UniTask<bool>(this, completionSource.Version);
}
protected virtual bool OnFirstIteration()
{
return false;
}
protected void SourceMoveNext()
{
CONTINUE: