You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assertion fails. If I either change Take(4) to Take(3), change Select invocation to x.Select((a, i) => a + "a"), or remove await Task.Yield(); line, the test passes.
Test case
The assertion fails. If I either change
Take(4)
toTake(3)
, changeSelect
invocation tox.Select((a, i) => a + "a")
, or removeawait Task.Yield();
line, the test passes.It seems that there is a strange interaction between the underlying
SelectArrayIterator<TSource, TResult>
and thread-context switches. I got a rough idea when looking atIterator<TSource>.GetEnumerator
, but would take another time to dig it deeper.Related code in library:
WikiClientLibrary/WikiClientLibrary/Flow/Board.cs
Lines 108 to 111 in 435681d
The text was updated successfully, but these errors were encountered: