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

Commit

Permalink
Add UniRx.Async module.
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jul 9, 2018
1 parent a20b389 commit 87085b6
Show file tree
Hide file tree
Showing 46 changed files with 8,473 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Assembly-CSharp-firstpass.csproj
Expand Up @@ -73,6 +73,25 @@
<Compile Include="Assets\Plugins\UniRx\Examples\Sample11_Logger.cs" />
<Compile Include="Assets\Plugins\UniRx\Examples\Sample12_ReactiveProperty.cs" />
<Compile Include="Assets\Plugins\UniRx\Examples\Sample13_ToDoApp.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\AsyncUnit.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\CompilerServices\AsyncMethodBuilderAttribute.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\CompilerServices\AsyncUniTaskMethodBuilder.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\CompilerServices\AsyncUniTaskVoidMethodBuilder.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\EnumeratorAsyncExtensions.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\Internal\Hack.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\Internal\PlayerLoopRunner.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\PlayerLoopHelper.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\Promise.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.Delay.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.Extensions.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.Factory.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.WhenAll.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.WhenAll.Generated.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.WhenAny.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTask.WhenAny.Generated.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UniTaskVoid.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Async\UnityAsyncExtensions.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Asynchronous\WebRequestExtensions.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Disposables\BooleanDisposable.cs" />
<Compile Include="Assets\Plugins\UniRx\Scripts\Disposables\CancellationDisposable.cs" />
Expand Down
8 changes: 8 additions & 0 deletions Assets/Plugins/UniRx/Scripts/Async.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions Assets/Plugins/UniRx/Scripts/Async/AsyncUnit.cs
@@ -0,0 +1,23 @@
#if CSHARP_7_OR_LATER
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or

using System;

namespace UniRx.Async
{
public struct AsyncUnit : IEquatable<AsyncUnit>
{
public static readonly AsyncUnit Default = new AsyncUnit();

public override int GetHashCode()
{
return 0;
}

public bool Equals(AsyncUnit other)
{
return true;
}
}
}
#endif
11 changes: 11 additions & 0 deletions Assets/Plugins/UniRx/Scripts/Async/AsyncUnit.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Plugins/UniRx/Scripts/Async/CompilerServices.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,18 @@
#if CSHARP_7_OR_LATER

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member

namespace System.Runtime.CompilerServices
{
public sealed class AsyncMethodBuilderAttribute : Attribute
{
public Type BuilderType { get; }

public AsyncMethodBuilderAttribute(Type builderType)
{
BuilderType = builderType;
}
}
}

#endif

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 87085b6

Please sign in to comment.