Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
for UWP fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jul 21, 2018
1 parent e9ee597 commit aa6186d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/Plugins/UniRx/Scripts/Async/IAwaiter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if (NET_4_6 || NET_STANDARD_2_0)
#if CSHARP_7_OR_LATER
#pragma warning disable CS1591

using System.Runtime.CompilerServices;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Threading;
#if (NET_4_6 || NET_STANDARD_2_0)
#if CSHARP_7_OR_LATER
using UniRx.Async;
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#if !UniRxLibrary
using UnityEngine;
#endif
#if (NET_4_6 || NET_STANDARD_2_0)
#if CSHARP_7_OR_LATER
using UniRx.Async;
#endif

Expand Down
6 changes: 6 additions & 0 deletions Assets/Scripts/Tests/_AsyncTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace UniRx.Tests
public class _AsyncTest
{
#if CSHARP_7_OR_LATER
#if !UNITY_WSA

public struct MyJob : IJob
{
Expand Down Expand Up @@ -167,6 +168,7 @@ public async UniTask WaitUntilValueChanged()
diff.Is(11);
}


public async UniTask SwitchTo()
{
var currentThreadId = Thread.CurrentThread.ManagedThreadId;
Expand Down Expand Up @@ -221,6 +223,8 @@ public async UniTask AwaitableReactiveCommand()
v.Is(100);
}



IEnumerator ToaruCoroutineEnumerator()
{
yield return null;
Expand Down Expand Up @@ -290,3 +294,5 @@ public async Task<string> GetTextAsync(string path)
}

#endif

#endif

0 comments on commit aa6186d

Please sign in to comment.