diff --git a/CHANGELOG.md b/CHANGELOG.md index a1fa1c6..ff247fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/); this project adheres to [Semantic Versioning](http://semver.org/). +----------------------- +## [1.0.1] - 2019.04.09 + +NOTE: NuGet-only release to instead of not published v1.0.0. + +### Changed +- Deprecated all `Task`-related extension methods. They are considered out of the library scope. + ----------------------- ## [1.0.0] - 2019.02.23 diff --git a/README.md b/README.md index 4c0bfd6..a8955ef 100644 --- a/README.md +++ b/README.md @@ -492,10 +492,9 @@ As stated abovethe library include 2 main parts: * Core tools (defined in `UnityFx.Async.dll` assembly, do not depend on Unity3d); * Unity3d-specific tools (defined as a collection of C# scripts if installed as an Asset Store package, require Unity3d to compile/execute). -Everything described before (unless specified otherwise) does not require Unity and can be used in any application. The Unity-specific stuff is located in 3 classes: +Everything described before (unless specified otherwise) does not require Unity and can be used in any application. Essential Unity-specific stuff is located in classes: * `AsyncUtility`. Defines helper methods for accessing main thread in Unity, running coroutines without actually using a `MonoBehaviour` and waiting for native Unity asynchronous operations outside of coroutines. * `AsyncWww`. Defines web request related helpers. -* `UnityExtensions`. Defines extensions for native Unity classes (like `AsyncOperation` and `UnityWebRequest`). For example, one can throw a few lines of code to be executed on a main thread using: ```csharp diff --git a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/AsyncOperationExtensions.cs b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/AsyncOperationExtensions.cs index 14f33ae..40720e8 100644 --- a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/AsyncOperationExtensions.cs +++ b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/AsyncOperationExtensions.cs @@ -60,6 +60,7 @@ public static IAsyncOperation ToAsync(this AssetBundleRequest op) where T /// Creates an wrapper for the Unity . /// /// The source operation. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this AsyncOperation op) { if (op.isDone) @@ -78,6 +79,7 @@ public static Task ToTask(this AsyncOperation op) /// Creates an wrapper for the Unity . /// /// The source operation. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this ResourceRequest op) where T : UnityEngine.Object { var result = new TaskCompletionSource(op); @@ -89,6 +91,7 @@ public static Task ToTask(this ResourceRequest op) where T : UnityEngine.O /// Creates an wrapper for the Unity . /// /// The source operation. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this AssetBundleRequest op) where T : UnityEngine.Object { var result = new TaskCompletionSource(op); @@ -100,6 +103,7 @@ public static Task ToTask(this AssetBundleRequest op) where T : UnityEngin /// Returns the operation awaiter. This method is intended for compiler use only. /// /// The operation to await. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static CompilerServices.AsyncOperationAwaiter GetAwaiter(this AsyncOperation op) { return new CompilerServices.AsyncOperationAwaiter(op); diff --git a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/UnityWebRequestExtensions.cs b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/UnityWebRequestExtensions.cs index 288addb..090c4b0 100644 --- a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/UnityWebRequestExtensions.cs +++ b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/UnityWebRequestExtensions.cs @@ -45,6 +45,7 @@ public static IAsyncOperation ToAsync(this UnityWebRequest request) where /// Creates an wrapper for the specified . /// /// The source web request. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this UnityWebRequest request) { var result = new TaskCompletionSource(request); @@ -56,6 +57,7 @@ public static Task ToTask(this UnityWebRequest request) /// Creates an wrapper for the specified . /// /// The source web request. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this UnityWebRequest request) where T : class { var result = new TaskCompletionSource(request); @@ -67,6 +69,7 @@ public static Task ToTask(this UnityWebRequest request) where T : class /// Returns the operation awaiter. This method is intended for compiler use only. /// /// The operation to await. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static CompilerServices.UnityWebRequestAwaiter GetAwaiter(this UnityWebRequest op) { return new CompilerServices.UnityWebRequestAwaiter(op); diff --git a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/WwwExtensions.cs b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/WwwExtensions.cs index b6fcc9c..1579442 100644 --- a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/WwwExtensions.cs +++ b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/WwwExtensions.cs @@ -46,6 +46,7 @@ public static IAsyncOperation ToAsync(this WWW request) where T : class /// Creates an wrapper for the specified . /// /// The source web request. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this WWW request) { var result = new TaskCompletionSource(request); @@ -57,6 +58,7 @@ public static Task ToTask(this WWW request) /// Creates an wrapper for the specified . /// /// The source web request. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static Task ToTask(this WWW request) where T : class { var result = new TaskCompletionSource(request); @@ -68,6 +70,7 @@ public static Task ToTask(this WWW request) where T : class /// Returns the operation awaiter. This method is intended for compiler use only. /// /// The operation to await. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static CompilerServices.WwwAwaiter GetAwaiter(this WWW op) { return new CompilerServices.WwwAwaiter(op); diff --git a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/YieldInstructionExtensions.cs b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/YieldInstructionExtensions.cs index 6f35b98..07d1219 100644 --- a/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/YieldInstructionExtensions.cs +++ b/src/UnityFx.Async.AssetStore/Assets/Plugins/UnityFx.Async/Scripts/Extensions/YieldInstructionExtensions.cs @@ -20,6 +20,7 @@ public static class YieldInstructionExtensions /// Returns the operation awaiter. This method is intended for compiler use only. /// /// The operation to await. + [Obsolete("Task-related helpers are out of the library scope. Please use UnityFx.Tasks instead.")] public static CompilerServices.YieldInstructionAwaiter GetAwaiter(this YieldInstruction op) { return new CompilerServices.YieldInstructionAwaiter(op); diff --git a/src/UnityFx.Async.AssetStore/UnityFx.Async.AssetStore.csproj b/src/UnityFx.Async.AssetStore/UnityFx.Async.AssetStore.csproj index 1bbd0bc..c88c977 100644 --- a/src/UnityFx.Async.AssetStore/UnityFx.Async.AssetStore.csproj +++ b/src/UnityFx.Async.AssetStore/UnityFx.Async.AssetStore.csproj @@ -2,22 +2,22 @@ net35;net46 - Asset Store code for UnityFx.Async. + Asset Store scripts for UnityFx.Async. Alexander Bogarsukov Alexander Bogarsukov https://github.com/Arvtesh/UnityFx.Async Git - 0.7.0 - 0.7.0.0 - 0.7.0.0 - 0.7.0.0 + 1.0.0 + 1.0.0.0 + 1.0.0.0 + 1.0.0.0 en-US UnityFx.Async false - true ../CodingConventions/Cs/CsharpRules.ruleset 4 + MIT diff --git a/src/UnityFx.Async/UnityFx.Async.csproj b/src/UnityFx.Async/UnityFx.Async.csproj index 900e219..e195dee 100644 --- a/src/UnityFx.Async/UnityFx.Async.csproj +++ b/src/UnityFx.Async/UnityFx.Async.csproj @@ -10,7 +10,6 @@ Git 1.0.0 https://github.com/Arvtesh/UnityFx.Async - https://github.com/Arvtesh/UnityFx.Async/blob/master/LICENSE.md UnityFx;Async;Promise;AsyncOperation;Coroutine;Task;Unity3d 1.0.0 @@ -23,6 +22,7 @@ ../CodingConventions/Cs/CsharpRules.ruleset true UnityFx.Async.snk + MIT