From ecd3625a0887a813e7ef4f097cbddec1df9eb370 Mon Sep 17 00:00:00 2001 From: neuecc Date: Tue, 6 Apr 2021 13:08:18 +0900 Subject: [PATCH] Fix UniTaskAsyncEnumerable.Prepend does not work, #251 --- .../Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs index 6738858..3935afd 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs @@ -17,7 +17,7 @@ namespace Cysharp.Threading.Tasks.Linq { Error.ThrowArgumentNullException(source, nameof(source)); - return new AppendPrepend(source, element, true); + return new AppendPrepend(source, element, false); } } @@ -79,7 +79,7 @@ namespace Cysharp.Threading.Tasks.Linq if (enumerator == null) { - if (state == State.RequireAppend) + if (state == State.RequirePrepend) { Current = element; state = State.None;