From 7ab94670699a4fb182258d71b271a93f097daf84 Mon Sep 17 00:00:00 2001 From: neuecc Date: Mon, 25 May 2020 19:42:51 +0900 Subject: [PATCH] IObservable.ToUniTask parameter order changed from CancellationToken cancellationToken, bool useFirst to bool useFirst, CancellationToken cancellationToken --- .../Plugins/UniTask/Runtime/UniTaskObservableExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskObservableExtensions.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskObservableExtensions.cs index 97ad6de..2f2a1bc 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskObservableExtensions.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskObservableExtensions.cs @@ -9,7 +9,7 @@ namespace Cysharp.Threading.Tasks { public static class UniTaskObservableExtensions { - public static UniTask ToUniTask(this IObservable source, CancellationToken cancellationToken = default(CancellationToken), bool useFirstValue = false) + public static UniTask ToUniTask(this IObservable source, bool useFirstValue = false, CancellationToken cancellationToken = default) { var promise = new UniTaskCompletionSource(); var disposable = new SingleAssignmentDisposable();