-
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #842 from Cysharp/feature/UseTimeProviderOnUnity
Use TimeProvider on Unity
- Loading branch information
Showing
65 changed files
with
3,948 additions
and
108 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/MagicOnion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+23.6 KB
...agicOnion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/.signature.p7s
Binary file not shown.
Binary file added
BIN
+6.84 KB
...Onion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
159 changes: 159 additions & 0 deletions
159
...MagicOnion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/Icon.png.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/MagicOnion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/LICENSE.TXT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) .NET Foundation and Contributors | ||
|
||
All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
7 changes: 7 additions & 0 deletions
7
...icOnion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/LICENSE.TXT.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
.../Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/Microsoft.Bcl.AsyncInterfaces.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd"> | ||
<metadata> | ||
<id>Microsoft.Bcl.AsyncInterfaces</id> | ||
<version>8.0.0</version> | ||
<authors>Microsoft</authors> | ||
<license type="expression">MIT</license> | ||
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl> | ||
<icon>Icon.png</icon> | ||
<readme>PACKAGE.md</readme> | ||
<projectUrl>https://dot.net/</projectUrl> | ||
<description>Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0. | ||
|
||
Commonly Used Types: | ||
System.IAsyncDisposable | ||
System.Collections.Generic.IAsyncEnumerable | ||
System.Collections.Generic.IAsyncEnumerator</description> | ||
<releaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</releaseNotes> | ||
<copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
<serviceable>true</serviceable> | ||
<repository type="git" url="https://github.com/dotnet/runtime" commit="5535e31a712343a63f5d7d796cd874e563e5ac14" /> | ||
<dependencies> | ||
<group targetFramework=".NETFramework4.6.2"> | ||
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" exclude="Build,Analyzers" /> | ||
</group> | ||
<group targetFramework=".NETStandard2.0"> | ||
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" exclude="Build,Analyzers" /> | ||
</group> | ||
<group targetFramework=".NETStandard2.1" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
7 changes: 7 additions & 0 deletions
7
...ts/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/Microsoft.Bcl.AsyncInterfaces.nuspec.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
...ion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/PACKAGE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
## About | ||
|
||
As of C# 8, the C# language has support for producing and consuming asynchronous iterators. The library types in support of those features are available in .NET Core 3.0 and newer as well as in .NET Standard 2.1. This library provides the necessary definitions of those types to support these language features on .NET Framework and on .NET Standard 2.0. This library is not necessary nor recommended when targeting versions of .NET that include the relevant support. | ||
|
||
## Key Features | ||
|
||
<!-- The key features of this package --> | ||
|
||
* Enables the use of C# async iterators on older .NET platforms | ||
|
||
## How to Use | ||
|
||
<!-- A compelling example on how to use this package with code, as well as any specific guidelines for when to use the package --> | ||
|
||
```C# | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
internal static class Program | ||
{ | ||
private static async Task Main() | ||
{ | ||
Console.WriteLine("Starting..."); | ||
await foreach (var value in GetValuesAsync()) | ||
{ | ||
Console.WriteLine(value); | ||
} | ||
Console.WriteLine("Finished!"); | ||
|
||
static async IAsyncEnumerable<int> GetValuesAsync() | ||
{ | ||
for (int i = 0; i < 10; i++) | ||
{ | ||
await Task.Delay(TimeSpan.FromSeconds(1)); | ||
yield return i; | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Main Types | ||
|
||
<!-- The main types provided in this library --> | ||
|
||
The main types provided by this library are: | ||
|
||
* `IAsyncEnumerable<T>` | ||
* `IAsyncEnumerator<T>` | ||
* `IAsyncDisposable<T>` | ||
|
||
## Additional Documentation | ||
|
||
<!-- Links to further documentation. Remove conceptual documentation if not available for the library. --> | ||
|
||
* [C# Feature Specification](https://learn.microsoft.com/dotnet/csharp/language-reference/proposals/csharp-8.0/async-streams) | ||
* [Walkthrough article](https://learn.microsoft.com/archive/msdn-magazine/2019/november/csharp-iterating-with-async-enumerables-in-csharp-8) | ||
|
||
## Feedback & Contributing | ||
|
||
<!-- How to provide feedback on this package and contribute to it --> | ||
|
||
Microsoft.Bcl.AsyncInterfaces is released as open source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime). |
7 changes: 7 additions & 0 deletions
7
...gicOnion.Client.Unity/Assets/Packages/Microsoft.Bcl.AsyncInterfaces.8.0.0/PACKAGE.md.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.