renaming namspeac to Cysharp.Threading.Tasks and move to under Plugins/UniTask

master
neuecc 2020-05-05 19:46:43 +09:00
parent a26a806b0f
commit d565f39dde
154 changed files with 118 additions and 190 deletions

View File

@ -12,8 +12,8 @@ public static class PackageExporter
public static void Export() public static void Export()
{ {
// configure // configure
var root = "UniRx.Async"; var root = "UniTask";
var exportPath = "./UniRx.Async.unitypackage"; var exportPath = "./UniTask.unitypackage";
var path = Path.Combine(Application.dataPath, root); var path = Path.Combine(Application.dataPath, root);
var assets = Directory.EnumerateFiles(path, "*", SearchOption.AllDirectories) var assets = Directory.EnumerateFiles(path, "*", SearchOption.AllDirectories)

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 14eb6ba721535664b9d31e3a2d7664f9 guid: b42c9a22c4f7bc7448ed60496a4dc359
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 28705d6096348bb4893f8f783cd912bb
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,33 +0,0 @@
fileFormatVersion: 2
guid: 563706d062bb0b545959896ab500001a
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 38249c6f05d584f44a219b4c97790f99 guid: 4929ac1f6fcfe944a99529b6fb5bd9ef
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Threading; using System.Threading;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public class AsyncLazy public class AsyncLazy
{ {

View File

@ -3,7 +3,7 @@
using System; using System;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public struct AsyncUnit : IEquatable<AsyncUnit> public struct AsyncUnit : IEquatable<AsyncUnit>
{ {

View File

@ -4,7 +4,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public class CancellationTokenEqualityComparer : IEqualityComparer<CancellationToken> public class CancellationTokenEqualityComparer : IEqualityComparer<CancellationToken>
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Threading; using System.Threading;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class CancellationTokenExtensions public static class CancellationTokenExtensions
{ {

View File

@ -3,10 +3,10 @@
using System.Threading; using System.Threading;
using UnityEngine; using UnityEngine;
using UniRx.Async.Triggers; using Cysharp.Threading.Tasks.Triggers;
using System; using System;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class CancellationTokenSourceExtensions public static class CancellationTokenSourceExtensions
{ {

View File

@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Security; using System.Security;
namespace UniRx.Async.CompilerServices namespace Cysharp.Threading.Tasks.CompilerServices
{ {
[StructLayout(LayoutKind.Auto)] [StructLayout(LayoutKind.Auto)]
public struct AsyncUniTaskMethodBuilder public struct AsyncUniTaskMethodBuilder

View File

@ -7,7 +7,7 @@ using System.Diagnostics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Security; using System.Security;
namespace UniRx.Async.CompilerServices namespace Cysharp.Threading.Tasks.CompilerServices
{ {
public struct AsyncUniTaskVoidMethodBuilder public struct AsyncUniTaskVoidMethodBuilder
{ {

View File

@ -5,9 +5,9 @@
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
namespace UniRx.Async.CompilerServices namespace Cysharp.Threading.Tasks.CompilerServices
{ {
internal interface IMoveNextRunner internal interface IMoveNextRunner
{ {

View File

@ -7,7 +7,7 @@ using System.Reflection;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Editor namespace Cysharp.Threading.Tasks.Editor
{ {
// reflection call of UnityEditor.SplitterGUILayout // reflection call of UnityEditor.SplitterGUILayout
internal static class SplitterGUILayout internal static class SplitterGUILayout

View File

@ -8,11 +8,11 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using System; using System;
using UnityEditor.IMGUI.Controls; using UnityEditor.IMGUI.Controls;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
using System.Text; using System.Text;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace UniRx.Async.Editor namespace Cysharp.Threading.Tasks.Editor
{ {
public class UniTaskTrackerViewItem : TreeViewItem public class UniTaskTrackerViewItem : TreeViewItem
{ {

View File

@ -8,9 +8,9 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using System; using System;
using UnityEditor.IMGUI.Controls; using UnityEditor.IMGUI.Controls;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
namespace UniRx.Async.Editor namespace Cysharp.Threading.Tasks.Editor
{ {
public class UniTaskTrackerWindow : EditorWindow public class UniTaskTrackerWindow : EditorWindow
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class EnumerableAsyncExtensions public static class EnumerableAsyncExtensions
{ {

View File

@ -6,10 +6,10 @@ using System.Collections;
using System.Reflection; using System.Reflection;
using System.Runtime.ExceptionServices; using System.Runtime.ExceptionServices;
using System.Threading; using System.Threading;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
using UnityEngine; using UnityEngine;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class EnumeratorAsyncExtensions public static class EnumeratorAsyncExtensions
{ {

View File

@ -2,7 +2,7 @@
using System; using System;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class ExceptionExtensions public static class ExceptionExtensions
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public enum UniTaskStatus public enum UniTaskStatus
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Threading; using System.Threading;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
// Same interface as System.Buffers.ArrayPool<T> but only provides Shared. // Same interface as System.Buffers.ArrayPool<T> but only provides Shared.

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class ArrayPoolUtil internal static class ArrayPoolUtil
{ {

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class ArrayUtil internal static class ArrayUtil
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Threading; using System.Threading;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal sealed class ContinuationQueue internal sealed class ContinuationQueue
{ {

View File

@ -15,7 +15,7 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks; using System.Threading.Tasks;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class DiagnosticsExtensions internal static class DiagnosticsExtensions
{ {
@ -183,7 +183,7 @@ namespace UniRx.Async.Internal
{ {
return "(" + string.Join(", ", t.GetGenericArguments().Select(x => BeautifyType(x, true))) + ")"; return "(" + string.Join(", ", t.GetGenericArguments().Select(x => BeautifyType(x, true))) + ")";
} }
if (!t.IsGenericType) return shortName ? t.Name : t.FullName.Replace("UniRx.Async.Triggers.", "").Replace("UniRx.Async.Internal.", "").Replace("UniRx.Async.", "") ?? t.Name; if (!t.IsGenericType) return shortName ? t.Name : t.FullName.Replace("Cysharp.Threading.Tasks.Triggers.", "").Replace("Cysharp.Threading.Tasks.Internal.", "").Replace("Cysharp.Threading.Tasks.", "") ?? t.Name;
var innerFormat = string.Join(", ", t.GetGenericArguments().Select(x => BeautifyType(x, true))); var innerFormat = string.Join(", ", t.GetGenericArguments().Select(x => BeautifyType(x, true)));
@ -193,7 +193,7 @@ namespace UniRx.Async.Internal
genericType = "Task"; genericType = "Task";
} }
return typeBeautifyRegex.Replace(genericType, "").Replace("UniRx.Async.Triggers.", "").Replace("UniRx.Async.Internal.", "").Replace("UniRx.Async.", "") + "<" + innerFormat + ">"; return typeBeautifyRegex.Replace(genericType, "").Replace("Cysharp.Threading.Tasks.Triggers.", "").Replace("Cysharp.Threading.Tasks.Internal.", "").Replace("Cysharp.Threading.Tasks.", "") + "<" + innerFormat + ">";
} }
static bool IgnoreLine(MethodBase methodInfo) static bool IgnoreLine(MethodBase methodInfo)
@ -207,7 +207,7 @@ namespace UniRx.Async.Internal
{ {
return true; return true;
} }
else if (declareType.StartsWith("UniRx.Async.CompilerServices")) else if (declareType.StartsWith("Cysharp.Threading.Tasks.CompilerServices"))
{ {
return true; return true;
} }
@ -219,11 +219,11 @@ namespace UniRx.Async.Internal
{ {
return true; return true;
} }
else if (declareType.StartsWith("UniRx.Async.UniTaskCompletionSourceCore")) else if (declareType.StartsWith("Cysharp.Threading.Tasks.UniTaskCompletionSourceCore"))
{ {
return true; return true;
} }
else if (declareType.StartsWith("UniRx.Async.AwaiterActions")) else if (declareType.StartsWith("Cysharp.Threading.Tasks.AwaiterActions"))
{ {
return true; return true;
} }

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class Error internal static class Error
{ {

View File

@ -2,7 +2,7 @@
using System; using System;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class FuncExtensions internal static class FuncExtensions
{ {

View File

@ -5,7 +5,7 @@
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
// optimized version of Standard Queue<T>. // optimized version of Standard Queue<T>.
internal class MinimumQueue<T> internal class MinimumQueue<T>

View File

@ -3,7 +3,7 @@
using System; using System;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal sealed class PlayerLoopRunner internal sealed class PlayerLoopRunner
{ {

View File

@ -2,7 +2,7 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal interface IPromisePoolItem internal interface IPromisePoolItem
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class RuntimeHelpersAbstraction internal static class RuntimeHelpersAbstraction
{ {

View File

@ -2,7 +2,7 @@
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class StateTuple internal static class StateTuple
{ {

View File

@ -5,9 +5,9 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Threading; using System.Threading;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
// public for add user custom. // public for add user custom.

View File

@ -6,7 +6,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
internal static class UnityEqualityComparer internal static class UnityEqualityComparer
{ {

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;
namespace UniRx.Async.Internal namespace Cysharp.Threading.Tasks.Internal
{ {
// Add, Remove, Enumerate with sweep. All operations are thread safe(in spinlock). // Add, Remove, Enumerate with sweep. All operations are thread safe(in spinlock).
internal class WeakDictionary<TKey, TValue> internal class WeakDictionary<TKey, TValue>

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Linq; using System.Linq;
using UnityEngine; using UnityEngine;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
using System.Threading; using System.Threading;
#if UNITY_2019_3_OR_NEWER #if UNITY_2019_3_OR_NEWER
@ -17,7 +17,7 @@ using UnityEngine.Experimental.LowLevel;
using UnityEditor; using UnityEditor;
#endif #endif
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class UniTaskLoopRunners public static class UniTaskLoopRunners
{ {

View File

@ -3,9 +3,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
/// <summary> /// <summary>
/// Lightweight IProgress[T] factory. /// Lightweight IProgress[T] factory.

View File

@ -4,7 +4,7 @@
using System.Threading; using System.Threading;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
public static partial class AsyncTriggerExtensions public static partial class AsyncTriggerExtensions
{ {

View File

@ -4,7 +4,7 @@
using System.Threading; using System.Threading;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
public static partial class AsyncTriggerExtensions public static partial class AsyncTriggerExtensions
{ {

View File

@ -4,7 +4,7 @@
using System.Threading; using System.Threading;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
public static partial class AsyncTriggerExtensions public static partial class AsyncTriggerExtensions
{ {

View File

@ -4,10 +4,10 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading; using System.Threading;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
using UnityEngine; using UnityEngine;
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
public abstract class AsyncTriggerBase : MonoBehaviour public abstract class AsyncTriggerBase : MonoBehaviour
{ {

View File

@ -3,9 +3,9 @@
using System.Threading; using System.Threading;
using UnityEngine; using UnityEngine;
using UniRx.Async.Triggers; using Cysharp.Threading.Tasks.Triggers;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public static class UniTaskCancellationExtensions public static class UniTaskCancellationExtensions
{ {
@ -23,7 +23,7 @@ namespace UniRx.Async
} }
} }
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
public static partial class AsyncTriggerExtensions public static partial class AsyncTriggerExtensions
{ {

View File

@ -4,7 +4,7 @@ using System.Threading;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
#region FixedUpdate #region FixedUpdate

View File

@ -112,7 +112,7 @@ using System.Threading;
using UnityEngine; using UnityEngine;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
namespace UniRx.Async.Triggers namespace Cysharp.Threading.Tasks.Triggers
{ {
<# foreach(var t in triggers) { #> <# foreach(var t in triggers) { #>
#region <#= t.triggerName #> #region <#= t.triggerName #>

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Collections; using System.Collections;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
// UnityEngine Bridges. // UnityEngine Bridges.

View File

@ -4,10 +4,10 @@
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
using UniRx.Async.Internal; using Cysharp.Threading.Tasks.Internal;
using UnityEngine; using UnityEngine;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public partial struct UniTask public partial struct UniTask
{ {

View File

@ -5,7 +5,7 @@ using System;
using System.Threading; using System.Threading;
using UnityEngine.Events; using UnityEngine.Events;
namespace UniRx.Async namespace Cysharp.Threading.Tasks
{ {
public partial struct UniTask public partial struct UniTask
{ {
@ -134,7 +134,7 @@ namespace UniRx.Async
internal static class CompletedTasks internal static class CompletedTasks
{ {
public static readonly UniTask<AsyncUnit> AsyncUnit = UniTask.FromResult(UniRx.Async.AsyncUnit.Default); public static readonly UniTask<AsyncUnit> AsyncUnit = UniTask.FromResult(Cysharp.Threading.Tasks.AsyncUnit.Default);
public static readonly UniTask<bool> True = UniTask.FromResult(true); public static readonly UniTask<bool> True = UniTask.FromResult(true);
public static readonly UniTask<bool> False = UniTask.FromResult(false); public static readonly UniTask<bool> False = UniTask.FromResult(false);
public static readonly UniTask<int> Zero = UniTask.FromResult(0); public static readonly UniTask<int> Zero = UniTask.FromResult(0);

Some files were not shown because too many files have changed in this diff Show More