Commit 3efb516
committed
fix: correct UniTask.WhenAny return type handling in UwbWebView
Windows build was failing with:
error CS0019: Operator '==' cannot be applied to operands of type 'bool' and 'int'
ROOT CAUSE:
UniTask.WhenAny has different return types depending on input types:
- WhenAny(UniTask<T>, UniTask<U>) returns (int, T/U) tuple
- WhenAny(UniTask<T>, UniTask) returns int index directly
Our case: WhenAny(UniTask<bool>, UniTask.Delay(...))
- UniTask.Delay returns UniTask (void), not UniTask<T>
- So WhenAny returns int, not tuple
FIX:
Changed from: var (winIndex, _) = await UniTask.WhenAny(...)
Changed to: int winIndex = await UniTask.WhenAny(...)1 parent 23e89cf commit 3efb516
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
0 commit comments