├── .github ├── FUNDING.yml ├── workflows │ ├── prevent-github-change.yaml │ ├── stale.yaml │ └── toc.yaml └── dependabot.yaml ├── src ├── UniTask │ ├── Assets │ │ ├── StreamingAssets │ │ │ ├── test.txt │ │ │ └── test.txt.meta │ │ ├── Tests │ │ │ ├── AsyncOperationTest.cs.meta │ │ │ ├── Resources │ │ │ │ └── sample_texture.png │ │ │ ├── Editor.meta │ │ │ ├── Resources.meta │ │ │ ├── UniTask.Tests.asmdef.meta │ │ │ ├── Editor │ │ │ │ ├── UniTask.Tests.Editor.asmdef.meta │ │ │ │ ├── RunTestEditor.cs.meta │ │ │ │ ├── AsyncTestEditor.cs.meta │ │ │ │ ├── WhenAnyTestEditor.cs.meta │ │ │ │ ├── UniTask.Tests.Editor.asmdef │ │ │ │ └── WhenAnyTestEditor.cs │ │ │ ├── Shims.cs.meta │ │ │ ├── AsyncTest.cs.meta │ │ │ ├── DelayTest.cs.meta │ │ │ ├── Preserve.cs.meta │ │ │ ├── RunTest.cs.meta │ │ │ ├── WhenAnyTest.cs.meta │ │ │ ├── CachelikeTest.cs.meta │ │ │ ├── GenericsWhenAllAny.cs.meta │ │ │ ├── PlayerLoopTimerTest.cs.meta │ │ │ ├── CoroutineToUniTaskTest.cs.meta │ │ │ ├── UniTask.Tests.asmdef │ │ │ ├── WhenAnyTest.cs │ │ │ └── Preserve.cs │ │ ├── Plugins │ │ │ ├── UniTask │ │ │ │ ├── Runtime │ │ │ │ │ ├── Linq │ │ │ │ │ │ ├── Merge.cs.meta │ │ │ │ │ │ ├── Sum.tt.meta │ │ │ │ │ │ ├── Average.tt.meta │ │ │ │ │ │ ├── MinMax.tt.meta │ │ │ │ │ │ ├── CombineLatest.tt.meta │ │ │ │ │ │ ├── UniTask.Linq.asmdef.meta │ │ │ │ │ │ ├── UnityExtensions.meta │ │ │ │ │ │ ├── All.cs.meta │ │ │ │ │ │ ├── Any.cs.meta │ │ │ │ │ │ ├── Do.cs.meta │ │ │ │ │ │ ├── Max.cs.meta │ │ │ │ │ │ ├── Min.cs.meta │ │ │ │ │ │ ├── Sum.cs.meta │ │ │ │ │ │ ├── Zip.cs.meta │ │ │ │ │ │ ├── Average.cs.meta │ │ │ │ │ │ ├── Buffer.cs.meta │ │ │ │ │ │ ├── Cast.cs.meta │ │ │ │ │ │ ├── Concat.cs.meta │ │ │ │ │ │ ├── Contains.cs.meta │ │ │ │ │ │ ├── Count.cs.meta │ │ │ │ │ │ ├── Create.cs.meta │ │ │ │ │ │ ├── Distinct.cs.meta │ │ │ │ │ │ ├── Empty.cs.meta │ │ │ │ │ │ ├── Except.cs.meta │ │ │ │ │ │ ├── First.cs.meta │ │ │ │ │ │ ├── ForEach.cs.meta │ │ │ │ │ │ ├── GroupBy.cs.meta │ │ │ │ │ │ ├── Join.cs.meta │ │ │ │ │ │ ├── Last.cs.meta │ │ │ │ │ │ ├── MinMax.cs.meta │ │ │ │ │ │ ├── Never.cs.meta │ │ │ │ │ │ ├── OfType.cs.meta │ │ │ │ │ │ ├── OrderBy.cs.meta │ │ │ │ │ │ ├── Pairwise.cs.meta │ │ │ │ │ │ ├── Publish.cs.meta │ │ │ │ │ │ ├── Queue.cs.meta │ │ │ │ │ │ ├── Range.cs.meta │ │ │ │ │ │ ├── Repeat.cs.meta │ │ │ │ │ │ ├── Return.cs.meta │ │ │ │ │ │ ├── Reverse.cs.meta │ │ │ │ │ │ ├── Select.cs.meta │ │ │ │ │ │ ├── Single.cs.meta │ │ │ │ │ │ ├── Skip.cs.meta │ │ │ │ │ │ ├── SkipLast.cs.meta │ │ │ │ │ │ ├── Take.cs.meta │ │ │ │ │ │ ├── TakeLast.cs.meta │ │ │ │ │ │ ├── Throw.cs.meta │ │ │ │ │ │ ├── ToArray.cs.meta │ │ │ │ │ │ ├── ToList.cs.meta │ │ │ │ │ │ ├── ToLookup.cs.meta │ │ │ │ │ │ ├── Union.cs.meta │ │ │ │ │ │ ├── Where.cs.meta │ │ │ │ │ │ ├── Aggregate.cs.meta │ │ │ │ │ │ ├── AppendPrepend.cs.meta │ │ │ │ │ │ ├── CombineLatest.cs.meta │ │ │ │ │ │ ├── ElementAt.cs.meta │ │ │ │ │ │ ├── GroupJoin.cs.meta │ │ │ │ │ │ ├── Intersect.cs.meta │ │ │ │ │ │ ├── LongCount.cs.meta │ │ │ │ │ │ ├── SelectMany.cs.meta │ │ │ │ │ │ ├── SequenceEqual.cs.meta │ │ │ │ │ │ ├── SkipUntil.cs.meta │ │ │ │ │ │ ├── SkipWhile.cs.meta │ │ │ │ │ │ ├── Subscribe.cs.meta │ │ │ │ │ │ ├── TakeUntil.cs.meta │ │ │ │ │ │ ├── TakeWhile.cs.meta │ │ │ │ │ │ ├── ToDictionary.cs.meta │ │ │ │ │ │ ├── ToHashSet.cs.meta │ │ │ │ │ │ ├── ToObservable.cs.meta │ │ │ │ │ │ ├── DefaultIfEmpty.cs.meta │ │ │ │ │ │ ├── SkipUntilCanceled.cs.meta │ │ │ │ │ │ ├── TakeUntilCanceled.cs.meta │ │ │ │ │ │ ├── AsyncEnumeratorBase.cs.meta │ │ │ │ │ │ ├── DistinctUntilChanged.cs.meta │ │ │ │ │ │ ├── UnityExtensions │ │ │ │ │ │ │ ├── Timer.cs.meta │ │ │ │ │ │ │ ├── EveryUpdate.cs.meta │ │ │ │ │ │ │ └── EveryValueChanged.cs.meta │ │ │ │ │ │ ├── AsUniTaskAsyncEnumerable.cs.meta │ │ │ │ │ │ ├── ToUniTaskAsyncEnumerable.cs.meta │ │ │ │ │ │ ├── AsUniTaskAsyncEnumerable.cs │ │ │ │ │ │ ├── UniTask.Linq.asmdef │ │ │ │ │ │ ├── Union.cs │ │ │ │ │ │ ├── Empty.cs │ │ │ │ │ │ ├── ToList.cs │ │ │ │ │ │ ├── Never.cs │ │ │ │ │ │ ├── Throw.cs │ │ │ │ │ │ ├── Cast.cs │ │ │ │ │ │ ├── Return.cs │ │ │ │ │ │ ├── Contains.cs │ │ │ │ │ │ ├── ToHashSet.cs │ │ │ │ │ │ ├── OfType.cs │ │ │ │ │ │ ├── ElementAt.cs │ │ │ │ │ │ ├── ToArray.cs │ │ │ │ │ │ └── Repeat.cs │ │ │ │ │ ├── UnityAwaitableExtensions.cs.meta │ │ │ │ │ ├── Linq.meta │ │ │ │ │ ├── UniTask.asmdef.meta │ │ │ │ │ ├── UnityAsyncExtensions.tt.meta │ │ │ │ │ ├── External.meta │ │ │ │ │ ├── Internal.meta │ │ │ │ │ ├── Triggers.meta │ │ │ │ │ ├── UniTask.WhenAll.Generated.tt.meta │ │ │ │ │ ├── UniTask.WhenAny.Generated.tt.meta │ │ │ │ │ ├── UniTaskExtensions.Shorthand.tt.meta │ │ │ │ │ ├── CompilerServices.meta │ │ │ │ │ ├── External │ │ │ │ │ │ ├── DOTween.meta │ │ │ │ │ │ ├── Addressables.meta │ │ │ │ │ │ ├── TextMeshPro.meta │ │ │ │ │ │ ├── DOTween │ │ │ │ │ │ │ ├── UniTask.DOTween.asmdef.meta │ │ │ │ │ │ │ ├── DOTweenAsyncExtensions.cs.meta │ │ │ │ │ │ │ └── UniTask.DOTween.asmdef │ │ │ │ │ │ ├── Addressables │ │ │ │ │ │ │ ├── UniTask.Addressables.asmdef.meta │ │ │ │ │ │ │ ├── AddressablesAsyncExtensions.cs.meta │ │ │ │ │ │ │ └── UniTask.Addressables.asmdef │ │ │ │ │ │ └── TextMeshPro │ │ │ │ │ │ │ ├── TextMeshProAsyncExtensions.InputField.tt.meta │ │ │ │ │ │ │ ├── UniTask.TextMeshPro.asmdef.meta │ │ │ │ │ │ │ ├── TextMeshProAsyncExtensions.cs.meta │ │ │ │ │ │ │ ├── TextMeshProAsyncExtensions.InputField.cs.meta │ │ │ │ │ │ │ └── UniTask.TextMeshPro.asmdef │ │ │ │ │ ├── Triggers │ │ │ │ │ │ ├── MonoBehaviourMessagesTriggers.tt.meta │ │ │ │ │ │ ├── AsyncAwakeTrigger.cs.meta │ │ │ │ │ │ ├── AsyncDestroyTrigger.cs.meta │ │ │ │ │ │ ├── AsyncStartTrigger.cs.meta │ │ │ │ │ │ ├── AsyncTriggerBase.cs.meta │ │ │ │ │ │ ├── AsyncTriggerExtensions.cs.meta │ │ │ │ │ │ ├── MonoBehaviourMessagesTriggers.cs.meta │ │ │ │ │ │ ├── AsyncAwakeTrigger.cs │ │ │ │ │ │ └── AsyncStartTrigger.cs │ │ │ │ │ ├── _InternalVisibleTo.cs │ │ │ │ │ ├── Channel.cs.meta │ │ │ │ │ ├── Progress.cs.meta │ │ │ │ │ ├── TaskPool.cs.meta │ │ │ │ │ ├── UniTask.cs.meta │ │ │ │ │ ├── AsyncLazy.cs.meta │ │ │ │ │ ├── AsyncUnit.cs.meta │ │ │ │ │ ├── TriggerEvent.cs.meta │ │ │ │ │ ├── UniTask.Delay.cs.meta │ │ │ │ │ ├── UniTask.Run.cs.meta │ │ │ │ │ ├── UniTaskVoid.cs.meta │ │ │ │ │ ├── IUniTaskSource.cs.meta │ │ │ │ │ ├── Internal │ │ │ │ │ │ ├── StatePool.cs.meta │ │ │ │ │ │ ├── MinimumQueue.cs.meta │ │ │ │ │ │ ├── PooledDelegate.cs.meta │ │ │ │ │ │ ├── TaskTracker.cs.meta │ │ │ │ │ │ ├── ValueStopwatch.cs.meta │ │ │ │ │ │ ├── WeakDictionary.cs.meta │ │ │ │ │ │ ├── ContinuationQueue.cs.meta │ │ │ │ │ │ ├── PlayerLoopRunner.cs.meta │ │ │ │ │ │ ├── DiagnosticsExtensions.cs.meta │ │ │ │ │ │ ├── UnityEqualityComparer.cs.meta │ │ │ │ │ │ ├── UnityWebRequestExtensions.cs.meta │ │ │ │ │ │ ├── ArrayPool.cs.meta │ │ │ │ │ │ ├── ArrayUtil.cs.meta │ │ │ │ │ │ ├── Error.cs.meta │ │ │ │ │ │ ├── ArrayPoolUtil.cs.meta │ │ │ │ │ │ ├── RuntimeHelpersAbstraction.cs.meta │ │ │ │ │ │ ├── UnityWebRequestExtensions.cs │ │ │ │ │ │ ├── ValueStopwatch.cs │ │ │ │ │ │ └── PooledDelegate.cs │ │ │ │ │ ├── MoveNextSource.cs.meta │ │ │ │ │ ├── PlayerLoopHelper.cs.meta │ │ │ │ │ ├── PlayerLoopTimer.cs.meta │ │ │ │ │ ├── TimeoutController.cs.meta │ │ │ │ │ ├── UniTask.Bridge.cs.meta │ │ │ │ │ ├── UniTask.Factory.cs.meta │ │ │ │ │ ├── UniTask.Threading.cs.meta │ │ │ │ │ ├── UniTask.WaitUntil.cs.meta │ │ │ │ │ ├── UniTask.WhenAll.cs.meta │ │ │ │ │ ├── UniTask.WhenAny.cs.meta │ │ │ │ │ ├── UniTask.WhenEach.cs.meta │ │ │ │ │ ├── UniTaskExtensions.cs.meta │ │ │ │ │ ├── UniTaskScheduler.cs.meta │ │ │ │ │ ├── _InternalVisibleTo.cs.meta │ │ │ │ │ ├── AsyncReactiveProperty.cs.meta │ │ │ │ │ ├── ExceptionExtensions.cs.meta │ │ │ │ │ ├── IUniTaskAsyncEnumerable.cs.meta │ │ │ │ │ ├── UniTask.AsValueTask.cs.meta │ │ │ │ │ ├── UniTaskCompletionSource.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.cs.meta │ │ │ │ │ ├── UnityBindingExtensions.cs.meta │ │ │ │ │ ├── CancellationTokenExtensions.cs.meta │ │ │ │ │ ├── EnumerableAsyncExtensions.cs.meta │ │ │ │ │ ├── EnumeratorAsyncExtensions.cs.meta │ │ │ │ │ ├── UniTask.WhenAll.Generated.cs.meta │ │ │ │ │ ├── UniTask.WhenAny.Generated.cs.meta │ │ │ │ │ ├── UniTaskExtensions.Shorthand.cs.meta │ │ │ │ │ ├── UniTaskObservableExtensions.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.Jobs.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.uGUI.cs.meta │ │ │ │ │ ├── UnityWebRequestException.cs.meta │ │ │ │ │ ├── CancellationTokenEqualityComparer.cs.meta │ │ │ │ │ ├── CancellationTokenSourceExtensions.cs.meta │ │ │ │ │ ├── UniTaskSynchronizationContext.cs.meta │ │ │ │ │ ├── CompilerServices │ │ │ │ │ │ ├── StateMachineRunner.cs.meta │ │ │ │ │ │ ├── AsyncUniTaskMethodBuilder.cs.meta │ │ │ │ │ │ ├── AsyncMethodBuilderAttribute.cs.meta │ │ │ │ │ │ ├── AsyncUniTaskVoidMethodBuilder.cs.meta │ │ │ │ │ │ └── AsyncMethodBuilderAttribute.cs │ │ │ │ │ ├── UnityAsyncExtensions.AsyncGPUReadback.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.AsyncInstantiate.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.MonoBehaviour.cs.meta │ │ │ │ │ ├── UnityAsyncExtensions.AssetBundleRequestAllAssets.cs.meta │ │ │ │ │ ├── ExceptionExtensions.cs │ │ │ │ │ ├── UniTask.Bridge.cs │ │ │ │ │ ├── UniTaskVoid.cs │ │ │ │ │ ├── UnityAsyncExtensions.MonoBehaviour.cs │ │ │ │ │ ├── UnityAwaitableExtensions.cs │ │ │ │ │ ├── AsyncUnit.cs │ │ │ │ │ ├── CancellationTokenEqualityComparer.cs │ │ │ │ │ ├── EnumerableAsyncExtensions.cs │ │ │ │ │ ├── UniTask.asmdef │ │ │ │ │ ├── MoveNextSource.cs │ │ │ │ │ ├── CancellationTokenSourceExtensions.cs │ │ │ │ │ ├── UnityWebRequestException.cs │ │ │ │ │ └── UniTaskExtensions.Shorthand.tt │ │ │ │ ├── package.json.meta │ │ │ │ ├── Editor.meta │ │ │ │ ├── Runtime.meta │ │ │ │ ├── Editor │ │ │ │ │ ├── UniTask.Editor.asmdef.meta │ │ │ │ │ ├── SplitterGUILayout.cs.meta │ │ │ │ │ ├── UniTaskTrackerTreeView.cs.meta │ │ │ │ │ ├── UniTaskTrackerWindow.cs.meta │ │ │ │ │ └── UniTask.Editor.asmdef │ │ │ │ └── package.json │ │ │ └── UniTask.meta │ │ ├── Scenes │ │ │ ├── SandboxMain.unity.meta │ │ │ ├── ExceptionExamples.unity.meta │ │ │ ├── EditorTest1.cs.meta │ │ │ ├── SandboxMain.cs.meta │ │ │ ├── WaitWhileTest.cs.meta │ │ │ ├── ExceptionExamples.cs.meta │ │ │ ├── MiddlewareSample.cs.meta │ │ │ ├── EditorTest1.cs │ │ │ ├── ExceptionExamples.cs │ │ │ └── WaitWhileTest.cs │ │ ├── Tests.meta │ │ ├── Editor.meta │ │ ├── Plugins.meta │ │ ├── Scenes.meta │ │ ├── TempAsm.meta │ │ ├── StreamingAssets.meta │ │ ├── TempAsm │ │ │ ├── TempAsm.asmdef.meta │ │ │ ├── FooMonoBehaviour.cs.meta │ │ │ ├── TempAsm.asmdef │ │ │ └── FooMonoBehaviour.cs │ │ └── Editor │ │ │ ├── PackageExporter.cs.meta │ │ │ ├── EditorRunnerChecker.cs.meta │ │ │ └── EditorRunnerChecker.cs │ ├── ProjectSettings │ │ ├── ProjectVersion.txt │ │ ├── ClusterInputManager.asset │ │ ├── PresetManager.asset │ │ ├── NetworkManager.asset │ │ ├── VFXManager.asset │ │ ├── XRSettings.asset │ │ ├── VersionControlSettings.asset │ │ ├── TimeManager.asset │ │ ├── EditorBuildSettings.asset │ │ ├── AudioManager.asset │ │ ├── TagManager.asset │ │ ├── UnityConnectSettings.asset │ │ ├── DynamicsManager.asset │ │ ├── PackageManagerSettings.asset │ │ ├── EditorSettings.asset │ │ ├── MemorySettings.asset │ │ ├── NavMeshAreas.asset │ │ ├── Physics2DSettings.asset │ │ └── GraphicsSettings.asset │ └── Packages │ │ └── manifest.json ├── UniTask.Analyzer │ ├── Properties │ │ └── launchSettings.json │ ├── UniTask.Analyzer.csproj │ └── UniTaskAnalyzer.cs ├── UniTask.NetCoreTests │ ├── Linq │ │ ├── QueueTest.cs │ │ ├── Factory.cs │ │ └── PulbishTest.cs │ ├── UniTask.NetCoreTests.csproj │ ├── DeferTest.cs │ ├── WithCancellationTest.cs │ ├── TaskExtensionsTest.cs │ ├── CancellationTokenTest.cs │ └── WhenEachTest.cs ├── UniTask.NetCoreSandbox │ ├── UniTask.NetCoreSandbox.csproj │ └── Program.cs └── UniTask.NetCore │ └── NetCore │ └── UniTask.Delay.cs ├── Icon.png ├── opensource.snk ├── docs ├── api │ └── .gitignore ├── index.md ├── .gitignore ├── toc.yml └── docfx.json ├── .config └── dotnet-tools.json ├── LICENSE ├── .editorconfig └── Directory.Build.props /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [neuecc] 2 | -------------------------------------------------------------------------------- /src/UniTask/Assets/StreamingAssets/test.txt: -------------------------------------------------------------------------------- 1 | MyTEST -------------------------------------------------------------------------------- /Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cysharp/UniTask/HEAD/Icon.png -------------------------------------------------------------------------------- /opensource.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cysharp/UniTask/HEAD/opensource.snk -------------------------------------------------------------------------------- /docs/api/.gitignore: -------------------------------------------------------------------------------- 1 | ############### 2 | # temp file # 3 | ############### 4 | *.yml 5 | .manifest 6 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/AsyncOperationTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 295d574a16494d6aa4d02fcb32179e39 3 | timeCreated: 1698887128 -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.39f1 2 | m_EditorVersionWithRevision: 2022.3.39f1 (4e1b0f82c39a) 3 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Merge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca56812f160c45d0bacb4339819edf1a 3 | timeCreated: 1694133666 -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Resources/sample_texture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cysharp/UniTask/HEAD/src/UniTask/Assets/Tests/Resources/sample_texture.png -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Home 3 | --- 4 | # UniTask 5 | 6 | Provides an efficient async/await integration to Unity. 7 | 8 | https://github.com/Cysharp/UniTask 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAwaitableExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c29533c9e4284dee914b71a6579ea274 3 | timeCreated: 1698895807 -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | ############### 2 | # folder # 3 | ############### 4 | /**/DROP/ 5 | /**/TEMP/ 6 | /**/packages/ 7 | /**/bin/ 8 | /**/obj/ 9 | _site 10 | _DocfxTemplate -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/SandboxMain.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/StreamingAssets/test.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fc83f79aef22a2449d5e9ca4964b2e0 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b831a4cf04cbe4b48ae74498484ec8c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_RenderPipeSettingsPath: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99c8676e874bf0343b421d3527868f16 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b42c9a22c4f7bc7448ed60496a4dc359 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1a9a71f68bb0d04db91ddaa3329abf9 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e4672a57ce755a44805bc58b4ddea29 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/ExceptionExamples.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5fed17e3ece238439bc796d8747df5d 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/TempAsm.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56fb2352cb532934f82d1590ce377e5c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4929ac1f6fcfe944a99529b6fb5bd9ef 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Sum.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b61271ca8e712494ab1ce2d10b180b6f 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7bb6ff9f1f0d0cd4da5ba7623f10dd6b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/TempAsm/TempAsm.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d076e9cb44bf59e41ab73add08e510cf 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 649f696fcc0c3104a8de82a2550d248c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d82913edf6ac48aca30f66ae9ba42d6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Average.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84bce45768c171d4490153eb08630a98 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/MinMax.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18108e9feb2ec40498df573cfef2ea15 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/UniTask.Tests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fbc684c31ac15b42809d42b62f6eb5f 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 275b87293edc6634f9d72387851dbbdf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa765154468d4b34eb34304100d39e64 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/CombineLatest.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1b8cfa9d17af814a971ee2224aaaaa2 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4cc94a232b1c1154b8084bdda29c3484 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f51ebe6a0ceec4240a699833d6309b23 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b1053c85b3f0794488b10e6de53e9c02 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor/UniTask.Tests.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c2431de67d1d97a48afcaf18f333a0b4 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask.Analyzer/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "UniTask.Analyzer": { 4 | "commandName": "DebugRoslynComponent", 5 | "targetProject": "..\\UniTask.NetCoreSandbox\\UniTask.NetCoreSandbox.csproj" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Editor/UniTask.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4129704b5a1a13841ba16f230bf24a57 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3e874acee8398745b1dc3eddac09eaa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 633f49a8aafb6fa43894cd4646c71743 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85c0c768ced512e42b24021b3258b669 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenAll.Generated.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c2ecfd98ee1b9a4c9fae1b398c32d75 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenAny.Generated.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 71c2c0bce7543454c8ef545083e18170 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskExtensions.Shorthand.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a75b5d7e55a5a34fb6476586df37c72 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "docfx": { 6 | "version": "2.78.3", 7 | "commands": [ 8 | "docfx" 9 | ], 10 | "rollForward": false 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64b064347ca7a404494a996b072e2e29 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25cb2f742bfeb1d48a4e65d3140b955d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/UniTask.Linq.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c01796d064528144a599661eaab93a6 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/Addressables.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5b9231662e24c942b544bd85d4b39cb 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/TextMeshPro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f89da606bde9a4e4e94ae1189a029887 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/UnityExtensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 669f5459819f7284ca1b35f4d55fe226 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/MonoBehaviourMessagesTriggers.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ca26d0cd9373354c8cd147490f32c8e 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/UniTask.DOTween.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 029c1c1b674aaae47a6841a0b89ad80e 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/Addressables/UniTask.Addressables.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 593a5b492d29ac6448b1ebf7f035ef33 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/TextMeshPro/TextMeshProAsyncExtensions.InputField.tt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9bb9fc551a975d44a7180e022a2debe 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/TextMeshPro/UniTask.TextMeshPro.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc47925d1a5fa2946bdd37746b2b5d48 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/_InternalVisibleTo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("UniTask.Linq")] 4 | [assembly: InternalsVisibleTo("UniTask.Addressables")] 5 | [assembly: InternalsVisibleTo("UniTask.DOTween")] 6 | [assembly: InternalsVisibleTo("UniTask.TextMeshPro")] -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Shims.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f76a88025d2f76a4bae09aaa268da103 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/AsyncTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e9960810a8f0634cb4aea38c563d947 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/DelayTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1376b93d9e1083a4a9b4081e08f3a7b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Preserve.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 418f4974867e1294b81020613a0b1032 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/RunTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3510f39953ed3074cb2e0f04d3a3f807 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/WhenAnyTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a07d2ea8baf390408279a29510f4953 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Editor/PackageExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af97405af79afbb4e9f7f49f30088474 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/EditorTest1.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48003021292963e48b2493e915dca5ac 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/SandboxMain.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f0bc6c75abb2e0b47a25aa49bfd488ed 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/WaitWhileTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a478e5f6126dc184ca902adfb35401b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/CachelikeTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 416e0e77b4408b0498792eb218ed2870 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /.github/workflows/prevent-github-change.yaml: -------------------------------------------------------------------------------- 1 | name: Prevent github change 2 | on: 3 | pull_request: 4 | paths: 5 | - ".github/**/*.yaml" 6 | - ".github/**/*.yml" 7 | 8 | jobs: 9 | detect: 10 | permissions: 11 | contents: read 12 | uses: Cysharp/Actions/.github/workflows/prevent-github-change.yaml@main 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Editor/EditorRunnerChecker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e51b78c06cb410f42b36e0af9de3b065 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/ExceptionExamples.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 329ff620b32b4ef4abdc99884242ee67 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/MiddlewareSample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fc39a4b35a8db44592cddc0b365942f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/TempAsm/FooMonoBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de703bd72a8720b47b7c3d993786aaae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor/RunTestEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76d078e5d960ac2429ce67a930c29ade 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/GenericsWhenAllAny.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ce87069a3c0ebb47b26dca280a07756 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/PlayerLoopTimerTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0c49de697f829f44aa8709b4d1eff3e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /.github/workflows/stale.yaml: -------------------------------------------------------------------------------- 1 | name: "Close stale issues" 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: "0 0 * * *" 7 | 8 | jobs: 9 | stale: 10 | permissions: 11 | contents: read 12 | pull-requests: write 13 | issues: write 14 | uses: Cysharp/Actions/.github/workflows/stale-issue.yaml@main 15 | -------------------------------------------------------------------------------- /.github/workflows/toc.yaml: -------------------------------------------------------------------------------- 1 | name: TOC Generator 2 | 3 | on: 4 | push: 5 | paths: 6 | - 'README.md' 7 | 8 | jobs: 9 | toc: 10 | permissions: 11 | contents: write 12 | uses: Cysharp/Actions/.github/workflows/toc-generator.yaml@main 13 | with: 14 | TOC_TITLE: "## Table of Contents" 15 | secrets: inherit 16 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Channel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ceb3107bbdd1f14eb39091273798360 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/All.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7271437e0033af2448b600ee248924dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Any.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2b2e65745263994fbe34f3e0ec8eb12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Do.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd83c8e12dedf75409b829b93146d130 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Max.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c8a118a6b664c441820b8a87d7f6e28 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Min.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57ac9da21d3457849a8e45548290a508 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Sum.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4149754066a21a341be58c04357061f6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Zip.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acc1acff153e347418f0f30b1c535994 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Progress.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3377e2ae934ed54fb8fd5388e2d9eb9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/TaskPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19f4e6575150765449cc99f25f06f25f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8947adf23181ff04db73829df217ca94 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/CoroutineToUniTaskTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43ffb719370515746932af3732ce073e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor/AsyncTestEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 851899ba3337ac24a8331cb18fabe771 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor/WhenAnyTestEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5addd9aa1a794441af032a71208b495 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/AsyncLazy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01d1404ca421466419a7db7340ff5e77 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/AsyncUnit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f95ac245430d304bb5128d13b6becc8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Average.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58499f95012fb3c47bb7bcbc5862e562 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Buffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 951310243334a3148a7872977cb31c5c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Cast.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edebeae8b61352b428abe9ce8f3fc71a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Concat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cb9e19c449127a459851a135ce7d527 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Contains.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36ab06d30f3223048b4f676e05431a7f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Count.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e606d38eed688574bb2ba89d983cc9bb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Create.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0202f723469f93945afa063bfb440d15 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Distinct.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f09903be66e5d943b243d7c19cb3811 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Empty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fa123ad6258abb4184721b719a13810 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Except.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38c1c4129f59dcb49a5b864eaf4ec63c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/First.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 417946e97e9eed84db6f840f57037ca6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ForEach.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca8d7f8177ba16140920af405aea3fd4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/GroupBy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2de80df1cc8a1240ab0ee7badd334d0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Join.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc4ff8cb6d7c9a64896f2f082124d6b3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Last.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0ccc93be1387fa4a975f06310127c11 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/MinMax.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d6da02d9ab970e4999daf7147d98e36 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Never.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b307c3d3be71a94da251564bcdefa3d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/OfType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 111ffe87a7d700442a9ef5af554b252c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/OrderBy.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 413883ceff8546143bdf200aafa4b8f7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Pairwise.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cddbf051d2a88f549986c468b23214af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Publish.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93c684d1e88c09d4e89b79437d97b810 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Queue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7ea1bcf9dbebb042bc99c7816249e02 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Range.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d826418a813498648b10542d0a5fb173 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Repeat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3819a3925165a674d80ee848c8600379 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Return.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4313cd8ecf705e44f9064ce46e293c2c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Reverse.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2769e65c729b4f4ca6af9826d9c7b90 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Select.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc68e598ca44a134b988dfaf5e53bfba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Single.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bcd3928b90472e43a3a92c3ba708967 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Skip.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c46b6c7dce0cb049a73c81084c75154 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/SkipLast.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df1d7f44d4fe7754f972c9e0b6fa72d5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Take.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42f02cb84e5875b488304755d0e1383d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/TakeLast.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 510aa9fd35b45fc40bcdb7e59f01fd1b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Throw.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d05a7d4f4161e549b4789e1022baae8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToArray.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: debb010bbb1622e43b94fe70ec0133dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3859c1b31e81d9b44b282e7d97e11635 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToLookup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57da22563bcd6ca4aaf256d941de5cb0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Union.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae57a55bdeba98b4f8ff234d98d7dd76 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Where.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d882a3238d9535e4e8ce1ad3291eb7fb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/TriggerEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f68b22bb8f66f5c4885f9bd3c4fc43ed 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.Delay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecff7972251de0848b2c0fa89bbd3489 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.Run.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8473162fc285a5f44bcca90f7da073e7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskVoid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9f28cd922179634d863011548f89ae7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Editor/SplitterGUILayout.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40ef2e46f900131419e869398a8d3c9d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/IUniTaskSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e4d023d8404ab742b5e808c98097c3c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/StatePool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60cdf0bcaea36b444a7ae7263ae7598f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Aggregate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dc68c05a4228c643937f6ebd185bcca 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AppendPrepend.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3268ec424b8055f45aa2a26d17c80468 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/CombineLatest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cb07f6e88287e34d9b9301a572284a5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ElementAt.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c835bd2dd8555234c8919c7b8ef3b69a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/GroupJoin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7bf7759d03bf3f64190d3ae83b182c2c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Intersect.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93999a70f5d57134bbe971f3e988c4f2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/LongCount.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 198b39e58ced3ab4f97ccbe0916787d5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/SelectMany.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d81862f0eb12680479ccaaf2ac319d24 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/SequenceEqual.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b382772aba6128842928cdb6b2e034b0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/SkipUntil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: de932d79c8d9f3841a066d05ff29edc9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/SkipWhile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b74b9fe361bf7148b51a29c8b2561e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Subscribe.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 263479eb04c189741931fc0e2f615c2d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/TakeUntil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12bda324162f15349afefc2c152ac07f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/TakeWhile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bca55adabcc4b3141b50b8b09634f764 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03b109b1fe1f2df46aa56ffb26747654 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToHashSet.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a3e552113af96e4986805ec3c4fc80a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToObservable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4f6f48a532188e4c80b7ebe69aea3a8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/MoveNextSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc4c5dc2a5f246e4f8df44cab735826c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/PlayerLoopHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15fb5b85042f19640b973ce651795aca 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/PlayerLoopTimer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57095a17fdca7ee4380450910afc7f26 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/TimeoutController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6347ab34d2db6d744a654e8d62d96b96 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.Bridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd6beac8e0ebd264e9ba246c39429c72 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.Factory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e12b66d6b9bd7845b04a594cbe386b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.Threading.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4132ea600454134439fa2c7eb931b5e6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WaitUntil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87c9c533491903a4288536b5ac173db8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenAll.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 355997a305ba64248822eec34998a1a0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenAny.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c32578978c37eaf41bdd90e1b034637d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenEach.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7cac24fdda5112047a1cd3dd66b542c4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05460c617dae1e440861a7438535389f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskScheduler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6cad69921702d5488d96b5ef30df1b0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/_InternalVisibleTo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8507e97eb606fad4b99c6edf92e19cb8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Editor/UniTaskTrackerTreeView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 52e2d973a2156674e8c1c9433ed031f7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Editor/UniTaskTrackerWindow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5bee3e3860e37484aa3b861bf76d129f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/AsyncReactiveProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ef320b87f537ee4fb2282e765dc6166 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/ExceptionExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 930800098504c0d46958ce23a0495202 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/IUniTaskAsyncEnumerable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b20cf9f02ac585948a4372fa4ee06504 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/MinimumQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d63add489ccc99498114d79702b904d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/PooledDelegate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8932579438742fa40b010edd412dbfba 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/TaskTracker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a203c73eb4ccdbb44bddfd82d38fdda9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ValueStopwatch.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f16fb466974ad034c8732c79c7fd67ea 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/WeakDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c78563864409714593226af59bcb6f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/DefaultIfEmpty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19e437c039ad7e1478dbce1779ef8660 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/SkipUntilCanceled.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b1a778aef7150d47b93a49aa1bc34ae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/TakeUntilCanceled.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e82f498cf3a1df04cbf646773fc11319 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.AsValueTask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d38f0478933be42d895c37b862540a1c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskCompletionSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed03524d09e7eb24a9fb9137198feb84 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cc7fd65dd1433e419be4764aeb51391 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityBindingExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 090b20e3528552b4a8d751f7df525c2b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4be7209f04146bd45ac5ee775a5f7c26 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/EnumerableAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff50260d74bd54c4b92cf99895549445 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/EnumeratorAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc661232f11e4a741af54ba1c175d5ee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ContinuationQueue.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f66c32454e50f2546b17deadc80a4c77 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/PlayerLoopRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 340c6d420bb4f484aa8683415ea92571 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AsyncEnumeratorBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 01ba1d3b17e13fb4c95740131c7e6e19 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/DistinctUntilChanged.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0351f6767df7e644b935d4d599968162 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/UnityExtensions/Timer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 382caacde439855418709c641e4d7b04 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncAwakeTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef2840a2586894741a0ae211b8fd669b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncDestroyTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4afdcb1cbadf954ba8b1cf465429e17 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncStartTrigger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b4fd0f75e54ec3d4fbcb7fc65b11646b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncTriggerBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c0c2bcee832c6641b25949c412f020f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenAll.Generated.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5110117231c8a6d4095fd0cbd3f4c142 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.WhenAny.Generated.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13d604ac281570c4eac9962429f19ca9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskExtensions.Shorthand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b4ff020f73dc6d4b8ebd4760d61fb43 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskObservableExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaea262a5ad393d419c15b3b2901d664 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.Jobs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30979a768fbd4b94f8694eee8a305c99 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.uGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6804799fba2376d4099561d176101aff 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityWebRequestException.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 013a499e522703a42962a779b4d9850c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /docs/toc.yml: -------------------------------------------------------------------------------- 1 | - name: API Documentation 2 | href: api/ 3 | homepage: api/Cysharp.Threading.Tasks.html 4 | 5 | - name: Repository 6 | href: https://github.com/Cysharp/UniTask 7 | homepage: https://github.com/Cysharp/UniTask 8 | 9 | - name: Releases 10 | href: https://github.com/Cysharp/UniTask/releases 11 | homepage: https://github.com/Cysharp/UniTask/releases -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenEqualityComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d739f510b125b74fa7290ac4335e46e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenSourceExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22d85d07f1e70ab42a7a4c25bd65e661 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/DiagnosticsExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f80fb1c9ed4c99447be1b0a47a8d980b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/UnityEqualityComparer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebaaf14253c9cfb47b23283218ff9b67 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AsUniTaskAsyncEnumerable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69866e262589ea643bbc62a1d696077a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToUniTaskAsyncEnumerable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7192de2a0581ec4db62962cc1404af5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/UnityExtensions/EveryUpdate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00520eb52e49b5b4e8d9870d6ff1aced 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncTriggerExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59b61dbea1562a84fb7a38ae0a0a0f88 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskSynchronizationContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abf3aae9813db2849bce518f8596e920 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/StateMachineRunner.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98649642833cabf44a9dc060ce4c84a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/UnityWebRequestExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 111ba0e639de1d7428af6c823ead4918 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/UnityExtensions/EveryValueChanged.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ec39f1c41c305344854782c935ad354 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/MonoBehaviourMessagesTriggers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c30655636c35c3d4da44064af3d2d9a7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AsyncGPUReadback.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98f5fedb44749ab4688674d79126b46a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AsyncInstantiate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8321f4244edfdcd4798b4fcc92a736c9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.MonoBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2edd588bb09eb0a4695d039d6a1f02b2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/AsyncUniTaskMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68d72a45afdec574ebc26e7de2c38330 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/DOTweenAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f448d5bc5b232e4f98d89d5d1832e8e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ArrayPool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f83ebad81fb89fb4882331616ca6d248 3 | timeCreated: 1532361008 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ArrayUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23146a82ec99f2542a87971c8d3d7988 3 | timeCreated: 1532361007 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/Error.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f39f495294d4604b8082202faf98554 3 | timeCreated: 1532361007 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/AsyncMethodBuilderAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02ce354d37b10454e8376062f7cbe57a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/AsyncUniTaskVoidMethodBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e891aaac17b933a47a9d7fa3b8e1226f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/TextMeshPro/TextMeshProAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6ba480edafb67d4e91bb10feb64fae5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ArrayPoolUtil.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 424cc208fb61d4e448b08fcfa0eee25e 3 | timeCreated: 1532361007 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.AssetBundleRequestAllAssets.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9147caba40da434da95b39709c13784 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/Addressables/AddressablesAsyncExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dc6441f9094f354b931dc3c79fb99e5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/TextMeshPro/TextMeshProAsyncExtensions.InputField.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79f4f2475e0b2c44e97ed1dee760627b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/ExceptionExtensions.cs: -------------------------------------------------------------------------------- 1 | 2 | using System; 3 | 4 | namespace Cysharp.Threading.Tasks 5 | { 6 | public static class ExceptionExtensions 7 | { 8 | public static bool IsOperationCanceledException(this Exception exception) 9 | { 10 | return exception is OperationCanceledException; 11 | } 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/RuntimeHelpersAbstraction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94975e4d4e0c0ea4ba787d3872ce9bb4 3 | timeCreated: 1532361007 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/AsUniTaskAsyncEnumerable.cs: -------------------------------------------------------------------------------- 1 | namespace Cysharp.Threading.Tasks.Linq 2 | { 3 | public static partial class UniTaskAsyncEnumerable 4 | { 5 | public static IUniTaskAsyncEnumerable AsUniTaskAsyncEnumerable(this IUniTaskAsyncEnumerable source) 6 | { 7 | return source; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/UniTask/Assets/TempAsm/TempAsm.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TempAsm", 3 | "references": [ 4 | "UniTask", 5 | "" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/UniTask.Linq.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.Linq", 3 | "references": [ 4 | "UniTask" 5 | ], 6 | "includePlatforms": [], 7 | "excludePlatforms": [], 8 | "allowUnsafeCode": false, 9 | "overrideReferences": false, 10 | "precompiledReferences": [], 11 | "autoReferenced": true, 12 | "defineConstraints": [], 13 | "versionDefines": [], 14 | "noEngineReferences": false 15 | } -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/SandboxMain.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | - enabled: 1 12 | path: Assets/Scenes/ExceptionExamples.unity 13 | guid: b5fed17e3ece238439bc796d8747df5d 14 | m_configObjects: {} 15 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Editor/UniTask.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.Editor", 3 | "references": [ 4 | "UniTask" 5 | ], 6 | "includePlatforms": [ 7 | "Editor" 8 | ], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": false, 14 | "defineConstraints": [], 15 | "versionDefines": [], 16 | "noEngineReferences": false 17 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.cysharp.unitask", 3 | "displayName": "UniTask", 4 | "author": { "name": "Cysharp, Inc.", "url": "https://cysharp.co.jp/en/" }, 5 | "version": "2.5.10", 6 | "unity": "2018.4", 7 | "description": "Provides an efficient async/await integration to Unity.", 8 | "keywords": [ "async/await", "async", "Task", "UniTask" ], 9 | "license": "MIT", 10 | "category": "Task", 11 | "dependencies": {} 12 | } 13 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.Bridge.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 2 | 3 | using System; 4 | using System.Collections; 5 | 6 | namespace Cysharp.Threading.Tasks 7 | { 8 | // UnityEngine Bridges. 9 | 10 | public partial struct UniTask 11 | { 12 | public static IEnumerator ToCoroutine(Func taskFactory) 13 | { 14 | return taskFactory().ToCoroutine(); 15 | } 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskVoid.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 2 | #pragma warning disable CS0436 3 | 4 | using System; 5 | using System.Diagnostics; 6 | using System.Runtime.CompilerServices; 7 | using Cysharp.Threading.Tasks.CompilerServices; 8 | 9 | namespace Cysharp.Threading.Tasks 10 | { 11 | [AsyncMethodBuilder(typeof(AsyncUniTaskVoidMethodBuilder))] 12 | public readonly struct UniTaskVoid 13 | { 14 | public void Forget() 15 | { 16 | } 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAsyncExtensions.MonoBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading; 3 | 4 | namespace Cysharp.Threading.Tasks 5 | { 6 | public static partial class UnityAsyncExtensions 7 | { 8 | public static UniTask StartAsyncCoroutine(this UnityEngine.MonoBehaviour monoBehaviour, Func asyncCoroutine) 9 | { 10 | var token = monoBehaviour.GetCancellationTokenOnDestroy(); 11 | return asyncCoroutine(token); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityAwaitableExtensions.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2023_1_OR_NEWER 2 | namespace Cysharp.Threading.Tasks 3 | { 4 | public static class UnityAwaitableExtensions 5 | { 6 | public static async UniTask AsUniTask(this UnityEngine.Awaitable awaitable) 7 | { 8 | await awaitable; 9 | } 10 | 11 | public static async UniTask AsUniTask(this UnityEngine.Awaitable awaitable) 12 | { 13 | return await awaitable; 14 | } 15 | } 16 | } 17 | #endif 18 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CompilerServices/AsyncMethodBuilderAttribute.cs: -------------------------------------------------------------------------------- 1 | 2 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 3 | #pragma warning disable CS0436 4 | 5 | namespace System.Runtime.CompilerServices 6 | { 7 | internal sealed class AsyncMethodBuilderAttribute : Attribute 8 | { 9 | public Type BuilderType { get; } 10 | 11 | public AsyncMethodBuilderAttribute(Type builderType) 12 | { 13 | BuilderType = builderType; 14 | } 15 | } 16 | } 17 | 18 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/UniTask.DOTween.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.DOTween", 3 | "references": [ 4 | "UniTask", 5 | "DOTween.Modules" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [ 15 | { 16 | "name": "com.demigiant.dotween", 17 | "expression": "", 18 | "define": "UNITASK_DOTWEEN_SUPPORT" 19 | } 20 | ], 21 | "noEngineReferences": false 22 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/AsyncUnit.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or 2 | 3 | using System; 4 | 5 | namespace Cysharp.Threading.Tasks 6 | { 7 | public readonly struct AsyncUnit : IEquatable 8 | { 9 | public static readonly AsyncUnit Default = new AsyncUnit(); 10 | 11 | public override int GetHashCode() 12 | { 13 | return 0; 14 | } 15 | 16 | public bool Equals(AsyncUnit other) 17 | { 18 | return true; 19 | } 20 | 21 | public override string ToString() 22 | { 23 | return "()"; 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.github/dependabot.yaml: -------------------------------------------------------------------------------- 1 | # ref: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot 2 | version: 2 3 | updates: 4 | - package-ecosystem: "github-actions" 5 | directory: "/" 6 | schedule: 7 | interval: "weekly" # Check for updates to GitHub Actions every week 8 | cooldown: 9 | default-days: 14 # Wait 14 days before creating another PR for the same dependency. This will prevent vulnerability on the package impact. 10 | ignore: 11 | # I just want update action when major/minor version is updated. patch updates are too noisy. 12 | - dependency-name: "*" 13 | update-types: 14 | - version-update:semver-patch 15 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/UniTask.Tests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.Tests", 3 | "references": [ 4 | "UnityEngine.TestRunner", 5 | "UnityEditor.TestRunner", 6 | "UniTask", 7 | "Unity.ResourceManager", 8 | "DOTween.Modules", 9 | "UniTask.Linq" 10 | ], 11 | "includePlatforms": [], 12 | "excludePlatforms": [], 13 | "allowUnsafeCode": false, 14 | "overrideReferences": true, 15 | "precompiledReferences": [ 16 | "nunit.framework.dll", 17 | "DOTween.dll" 18 | ], 19 | "autoReferenced": false, 20 | "defineConstraints": [ 21 | "UNITY_INCLUDE_TESTS" 22 | ], 23 | "versionDefines": [], 24 | "noEngineReferences": false 25 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/TempAsm/FooMonoBehaviour.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | using UnityEngine.Networking; 6 | 7 | public class FooMonoBehaviour : MonoBehaviour 8 | { 9 | // Start is called before the first frame update 10 | void Start() 11 | { 12 | 13 | } 14 | 15 | //private async UniTask Download(UnityWebRequest req, string filePath) 16 | //{ 17 | // _ = req.SendWebRequest(); 18 | 19 | 20 | 21 | 22 | // // var aaa = await foo; 23 | // // Debug.Log(aaa); 24 | // await UniTask.Yield(); 25 | // //File.WriteAllText(filePath, req.downloadHandler.text ?? string.Empty); 26 | //} 27 | } 28 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor/UniTask.Tests.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.Tests.Editor", 3 | "references": [ 4 | "UnityEngine.TestRunner", 5 | "UnityEditor.TestRunner", 6 | "UniTask.Tests", 7 | "UniTask", 8 | "Unity.ResourceManager", 9 | "DOTween.Modules" 10 | ], 11 | "includePlatforms": [ 12 | "Editor" 13 | ], 14 | "excludePlatforms": [], 15 | "allowUnsafeCode": false, 16 | "overrideReferences": true, 17 | "precompiledReferences": [ 18 | "nunit.framework.dll", 19 | "DOTween.dll" 20 | ], 21 | "autoReferenced": false, 22 | "defineConstraints": [ 23 | "UNITY_INCLUDE_TESTS" 24 | ], 25 | "versionDefines": [], 26 | "noEngineReferences": false 27 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenEqualityComparer.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 2 | 3 | using System.Collections.Generic; 4 | using System.Threading; 5 | 6 | namespace Cysharp.Threading.Tasks 7 | { 8 | public class CancellationTokenEqualityComparer : IEqualityComparer 9 | { 10 | public static readonly IEqualityComparer Default = new CancellationTokenEqualityComparer(); 11 | 12 | public bool Equals(CancellationToken x, CancellationToken y) 13 | { 14 | return x.Equals(y); 15 | } 16 | 17 | public int GetHashCode(CancellationToken obj) 18 | { 19 | return obj.GetHashCode(); 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/Linq/QueueTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using Cysharp.Threading.Tasks.Linq; 3 | using FluentAssertions; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using Xunit; 9 | 10 | namespace NetCoreTests.Linq 11 | { 12 | public class QueueTest 13 | { 14 | [Fact] 15 | public async Task Q() 16 | { 17 | var rp = new AsyncReactiveProperty(100); 18 | 19 | var l = new List(); 20 | await rp.Take(10).Queue().ForEachAsync(x => 21 | { 22 | rp.Value += 10; 23 | l.Add(x); 24 | }); 25 | 26 | l.Should().Equal(100, 110, 120, 130, 140, 150, 160, 170, 180, 190); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Editor/EditorRunnerChecker.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | 3 | using Cysharp.Threading.Tasks; 4 | using System; 5 | using System.IO; 6 | using System.Linq; 7 | using UnityEditor; 8 | using UnityEngine; 9 | using UnityEngine.Networking; 10 | 11 | public static class EditorRunnerChecker 12 | { 13 | [MenuItem("Tools/UniTaskEditorRunnerChecker")] 14 | public static void RunUniTaskAsync() 15 | { 16 | RunCore().Forget(); 17 | } 18 | 19 | static async UniTaskVoid RunCore() 20 | { 21 | Debug.Log("Start"); 22 | 23 | //var r = await UnityWebRequest.Get("https://bing.com/").SendWebRequest().ToUniTask(); 24 | //Debug.Log(r.downloadHandler.text.Substring(0, 100)); 25 | //await UniTask.Yield(); 26 | 27 | await UniTask.DelayFrame(30); 28 | 29 | Debug.Log("End"); 30 | } 31 | } 32 | 33 | #endif -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/TextMeshPro/UniTask.TextMeshPro.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.TextMeshPro", 3 | "references": [ 4 | "UniTask", 5 | "Unity.TextMeshPro" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [ 15 | { 16 | "name": "com.unity.textmeshpro", 17 | "expression": "", 18 | "define": "UNITASK_TEXTMESHPRO_SUPPORT" 19 | }, 20 | { 21 | "name": "com.unity.ugui", 22 | "expression": "2.0.0", 23 | "define": "UNITASK_TEXTMESHPRO_SUPPORT" 24 | } 25 | ], 26 | "noEngineReferences": false 27 | } 28 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/External/Addressables/UniTask.Addressables.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask.Addressables", 3 | "references": [ 4 | "UniTask", 5 | "Unity.ResourceManager", 6 | "Unity.Addressables" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": false, 12 | "precompiledReferences": [], 13 | "autoReferenced": true, 14 | "defineConstraints": [], 15 | "versionDefines": [ 16 | { 17 | "name": "com.unity.addressables", 18 | "expression": "", 19 | "define": "UNITASK_ADDRESSABLE_SUPPORT" 20 | }, 21 | { 22 | "name": "com.unity.addressables.cn", 23 | "expression": "", 24 | "define": "UNITASK_ADDRESSABLE_SUPPORT" 25 | } 26 | ], 27 | "noEngineReferences": false 28 | } 29 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreSandbox/UniTask.NetCoreSandbox.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | NetCoreSandbox 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | false 20 | Analyzer 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/UnityWebRequestExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using UnityEngine.Networking; 7 | 8 | namespace Cysharp.Threading.Tasks.Internal 9 | { 10 | #if ENABLE_UNITYWEBREQUEST && (!UNITY_2019_1_OR_NEWER || UNITASK_WEBREQUEST_SUPPORT) 11 | 12 | internal static class UnityWebRequestResultExtensions 13 | { 14 | public static bool IsError(this UnityWebRequest unityWebRequest) 15 | { 16 | #if UNITY_2020_2_OR_NEWER 17 | var result = unityWebRequest.result; 18 | return (result == UnityWebRequest.Result.ConnectionError) 19 | || (result == UnityWebRequest.Result.DataProcessingError) 20 | || (result == UnityWebRequest.Result.ProtocolError); 21 | #else 22 | return unityWebRequest.isHttpError || unityWebRequest.isNetworkError; 23 | #endif 24 | } 25 | } 26 | 27 | #endif 28 | } -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/UniTask.NetCoreTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net7.0 5 | NetCoreTests 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | all 17 | runtime; build; native; contentfiles; analyzers; buildtransitive 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncAwakeTrigger.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 2 | 3 | using System.Threading; 4 | using UnityEngine; 5 | 6 | namespace Cysharp.Threading.Tasks.Triggers 7 | { 8 | public static partial class AsyncTriggerExtensions 9 | { 10 | public static AsyncAwakeTrigger GetAsyncAwakeTrigger(this GameObject gameObject) 11 | { 12 | return GetOrAddComponent(gameObject); 13 | } 14 | 15 | public static AsyncAwakeTrigger GetAsyncAwakeTrigger(this Component component) 16 | { 17 | return component.gameObject.GetAsyncAwakeTrigger(); 18 | } 19 | } 20 | 21 | [DisallowMultipleComponent] 22 | public sealed class AsyncAwakeTrigger : AsyncTriggerBase 23 | { 24 | public UniTask AwakeAsync() 25 | { 26 | if (calledAwake) return UniTask.CompletedTask; 27 | 28 | return ((IAsyncOneShotTrigger)new AsyncTriggerHandler(this, true)).OneShotAsync(); 29 | } 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | m_PackageRequiringCoreStatsPresent: 0 27 | UnityAdsSettings: 28 | m_Enabled: 0 29 | m_InitializeOnStartup: 1 30 | m_TestMode: 0 31 | m_IosGameId: 32 | m_AndroidGameId: 33 | m_GameIds: {} 34 | m_GameId: 35 | PerformanceReportingSettings: 36 | m_Enabled: 0 37 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreSandbox/Program.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1998 2 | 3 | using Cysharp.Threading.Tasks; 4 | 5 | using System.Linq; 6 | using System; 7 | using System.Collections.Generic; 8 | using System.Threading; 9 | using System.Threading.Tasks; 10 | using System.Collections; 11 | using System.Text; 12 | using System.Text.RegularExpressions; 13 | using System.Runtime.CompilerServices; 14 | using Cysharp.Threading.Tasks.Linq; 15 | using System.Reactive.Linq; 16 | using System.Reactive.Concurrency; 17 | 18 | namespace NetCoreSandbox 19 | { 20 | public class Program 21 | { 22 | static async Task Main(string[] args) 23 | { 24 | var cts = new CancellationTokenSource(); 25 | 26 | 27 | // OK. 28 | await FooAsync(10, cts.Token); 29 | 30 | // NG(Compiler Error) 31 | // await FooAsync(10); 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | } 43 | 44 | static async UniTask FooAsync(int x, CancellationToken cancellationToken = default) 45 | { 46 | await UniTask.Yield(); 47 | } 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 Yoshifumi Kawai / Cysharp, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/DeferTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using FluentAssertions; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading; 8 | using System.Threading.Channels; 9 | using Cysharp.Threading.Tasks.Linq; 10 | using System.Threading.Tasks; 11 | using Xunit; 12 | 13 | namespace NetCoreTests 14 | { 15 | public class DeferTest 16 | { 17 | [Fact] 18 | public async Task D() 19 | { 20 | var created = false; 21 | var v = UniTask.Defer(() => { created = true; return UniTask.Run(() => 10); }); 22 | 23 | created.Should().BeFalse(); 24 | 25 | var t = await v; 26 | 27 | created.Should().BeTrue(); 28 | 29 | t.Should().Be(10); 30 | } 31 | 32 | [Fact] 33 | public async Task D2() 34 | { 35 | var created = false; 36 | var v = UniTask.Defer(() => { created = true; return UniTask.Run(() => 10).AsUniTask(); }); 37 | 38 | created.Should().BeFalse(); 39 | 40 | await v; 41 | 42 | created.Should().BeTrue(); 43 | } 44 | } 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/UniTask.NetCore/NetCore/UniTask.Delay.cs: -------------------------------------------------------------------------------- 1 | //using Cysharp.Threading.Tasks.Internal; 2 | //using System; 3 | //using System.Collections.Concurrent; 4 | //using System.Runtime.CompilerServices; 5 | //using System.Threading; 6 | 7 | //namespace Cysharp.Threading.Tasks 8 | //{ 9 | // public partial struct UniTask 10 | // { 11 | // public static UniTask Delay() 12 | // { 13 | // return default; 14 | // } 15 | 16 | // sealed class DelayPromise : IUniTaskSource 17 | // { 18 | // public void GetResult(short token) 19 | // { 20 | // throw new NotImplementedException(); 21 | // } 22 | 23 | // public UniTaskStatus GetStatus(short token) 24 | // { 25 | // throw new NotImplementedException(); 26 | // } 27 | 28 | // public void OnCompleted(Action continuation, object state, short token) 29 | // { 30 | // throw new NotImplementedException(); 31 | // } 32 | 33 | // public UniTaskStatus UnsafeGetStatus() 34 | // { 35 | // throw new NotImplementedException(); 36 | // } 37 | // } 38 | // } 39 | //} -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 0 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 0 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | m_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/WithCancellationTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using FluentAssertions; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Text; 6 | using System.Threading; 7 | using System.Threading.Tasks; 8 | using Xunit; 9 | 10 | namespace NetCoreTests 11 | { 12 | public class WithCancellationTest 13 | { 14 | [Fact] 15 | public async Task Standard() 16 | { 17 | CancellationTokenSource cts = new CancellationTokenSource(); 18 | 19 | var v = await UniTask.Run(() => 10).AttachExternalCancellation(cts.Token); 20 | 21 | v.Should().Be(10); 22 | } 23 | 24 | [Fact] 25 | public async Task Cancel() 26 | { 27 | CancellationTokenSource cts = new CancellationTokenSource(); 28 | 29 | var t = UniTask.Create(async () => 30 | { 31 | await Task.Delay(TimeSpan.FromSeconds(1)); 32 | return 10; 33 | }).AttachExternalCancellation(cts.Token); 34 | 35 | cts.Cancel(); 36 | 37 | (await Assert.ThrowsAsync(async () => await t)).CancellationToken.Should().Be(cts.Token); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Union.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System.Collections.Generic; 3 | 4 | namespace Cysharp.Threading.Tasks.Linq 5 | { 6 | public static partial class UniTaskAsyncEnumerable 7 | { 8 | public static IUniTaskAsyncEnumerable Union(this IUniTaskAsyncEnumerable first, IUniTaskAsyncEnumerable second) 9 | { 10 | Error.ThrowArgumentNullException(first, nameof(first)); 11 | Error.ThrowArgumentNullException(second, nameof(second)); 12 | 13 | return Union(first, second, EqualityComparer.Default); 14 | } 15 | 16 | public static IUniTaskAsyncEnumerable Union(this IUniTaskAsyncEnumerable first, IUniTaskAsyncEnumerable second, IEqualityComparer comparer) 17 | { 18 | Error.ThrowArgumentNullException(first, nameof(first)); 19 | Error.ThrowArgumentNullException(second, nameof(second)); 20 | Error.ThrowArgumentNullException(comparer, nameof(comparer)); 21 | 22 | // improv without combinate? 23 | return first.Concat(second).Distinct(comparer); 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Triggers/AsyncStartTrigger.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 2 | 3 | using UnityEngine; 4 | 5 | namespace Cysharp.Threading.Tasks.Triggers 6 | { 7 | public static partial class AsyncTriggerExtensions 8 | { 9 | public static AsyncStartTrigger GetAsyncStartTrigger(this GameObject gameObject) 10 | { 11 | return GetOrAddComponent(gameObject); 12 | } 13 | 14 | public static AsyncStartTrigger GetAsyncStartTrigger(this Component component) 15 | { 16 | return component.gameObject.GetAsyncStartTrigger(); 17 | } 18 | } 19 | 20 | [DisallowMultipleComponent] 21 | public sealed class AsyncStartTrigger : AsyncTriggerBase 22 | { 23 | bool called; 24 | 25 | void Start() 26 | { 27 | called = true; 28 | RaiseEvent(AsyncUnit.Default); 29 | } 30 | 31 | public UniTask StartAsync() 32 | { 33 | if (called) return UniTask.CompletedTask; 34 | 35 | return ((IAsyncOneShotTrigger)new AsyncTriggerHandler(this, true)).OneShotAsync(); 36 | } 37 | } 38 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/EditorTest1.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_EDITOR 2 | 3 | using System; 4 | using Cysharp.Threading.Tasks; 5 | using UnityEditor; 6 | using UnityEngine; 7 | 8 | public class Test1 9 | { 10 | [MenuItem("Test/Test1")] 11 | public static async UniTaskVoid TestFunc() 12 | { 13 | await DoSomeThing(); 14 | //string[] scenes = new string[] 15 | //{ 16 | // "Assets/Scenes/SandboxMain.unity", 17 | //}; 18 | 19 | //try 20 | //{ 21 | // Debug.Log("Build Begin"); 22 | // BuildPipeline.BuildPlayer(scenes, Application.dataPath + "../target", BuildTarget.StandaloneWindows, BuildOptions.CompressWithLz4); 23 | // Debug.Log("Build After"); 24 | //} 25 | //catch (Exception e) 26 | //{ 27 | // Debug.LogError(e.Message); 28 | //} 29 | } 30 | 31 | public static async UniTask DoSomeThing() 32 | { 33 | Debug.Log("Dosomething"); 34 | await UniTask.Delay(1500, DelayType.DeltaTime); 35 | Debug.Log("Dosomething 2"); 36 | await UniTask.Delay(1000, DelayType.DeltaTime); 37 | Debug.Log("Dosomething 3"); 38 | Debug.Log("and Quit."); 39 | 40 | Environment.Exit(0); 41 | } 42 | } 43 | 44 | #endif -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 9 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 4 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 1 30 | m_AssetPipelineMode: 1 31 | m_CacheServerMode: 0 32 | m_CacheServerEndpoint: 33 | m_CacheServerNamespacePrefix: default 34 | m_CacheServerEnableDownload: 1 35 | m_CacheServerEnableUpload: 1 36 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/ValueStopwatch.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | 4 | namespace Cysharp.Threading.Tasks.Internal 5 | { 6 | internal readonly struct ValueStopwatch 7 | { 8 | static readonly double TimestampToTicks = TimeSpan.TicksPerSecond / (double)Stopwatch.Frequency; 9 | 10 | readonly long startTimestamp; 11 | 12 | public static ValueStopwatch StartNew() => new ValueStopwatch(Stopwatch.GetTimestamp()); 13 | 14 | ValueStopwatch(long startTimestamp) 15 | { 16 | this.startTimestamp = startTimestamp; 17 | } 18 | 19 | public TimeSpan Elapsed => TimeSpan.FromTicks(this.ElapsedTicks); 20 | 21 | public bool IsInvalid => startTimestamp == 0; 22 | 23 | public long ElapsedTicks 24 | { 25 | get 26 | { 27 | if (startTimestamp == 0) 28 | { 29 | throw new InvalidOperationException("Detected invalid initialization(use 'default'), only to create from StartNew()."); 30 | } 31 | 32 | var delta = Stopwatch.GetTimestamp() - startTimestamp; 33 | return (long)(delta * TimestampToTicks); 34 | } 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # top-most EditorConfig file 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_style = space 8 | indent_size = 2 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | # Visual Studio Spell checker configs (https://learn.microsoft.com/en-us/visualstudio/ide/text-spell-checker?view=vs-2022#how-to-customize-the-spell-checker) 13 | spelling_exclusion_path = ./exclusion.dic 14 | 15 | [*.cs] 16 | indent_size = 4 17 | charset = utf-8-bom 18 | end_of_line = unset 19 | 20 | # Solution files 21 | [*.{sln,slnx}] 22 | end_of_line = unset 23 | 24 | # MSBuild project files 25 | [*.{csproj,props,targets}] 26 | end_of_line = unset 27 | 28 | # Xml config files 29 | [*.{ruleset,config,nuspec,resx,runsettings,DotSettings}] 30 | end_of_line = unset 31 | 32 | [*{_AssemblyInfo.cs,.notsupported.cs}] 33 | generated_code = true 34 | 35 | # C# code style settings 36 | [*.{cs}] 37 | dotnet_diagnostic.IDE0044.severity = none # IDE0044: Make field readonly 38 | 39 | # https://stackoverflow.com/questions/79195382/how-to-disable-fading-unused-methods-in-visual-studio-2022-17-12-0 40 | dotnet_diagnostic.IDE0051.severity = none # IDE0051: Remove unused private member 41 | dotnet_diagnostic.IDE0130.severity = none # IDE0130: Namespace does not match folder structure 42 | -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | true 5 | $(MSBuildThisFileDirectory)opensource.snk 6 | 7 | 8 | false 9 | $(Version) 10 | Cysharp 11 | Cysharp 12 | © Cysharp, Inc. 13 | task;async 14 | https://github.com/Cysharp/UniTask 15 | README.md 16 | $(PackageProjectUrl) 17 | git 18 | MIT 19 | Icon.png 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/TaskExtensionsTest.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1998 2 | 3 | using System; 4 | using System.Threading.Tasks; 5 | using Cysharp.Threading.Tasks; 6 | using Xunit; 7 | 8 | namespace NetCoreTests 9 | { 10 | public class TaskExtensionsTest 11 | { 12 | [Fact] 13 | public async Task PropagateException() 14 | { 15 | await Assert.ThrowsAsync(async () => 16 | { 17 | await ThrowAsync().AsUniTask(); 18 | }); 19 | 20 | await Assert.ThrowsAsync(async () => 21 | { 22 | await ThrowOrValueAsync().AsUniTask(); 23 | }); 24 | } 25 | 26 | [Fact] 27 | public async Task PropagateExceptionWhenAll() 28 | { 29 | await Assert.ThrowsAsync(async () => 30 | { 31 | await Task.WhenAll(ThrowAsync(), ThrowAsync()).AsUniTask(); 32 | }); 33 | } 34 | 35 | async Task ThrowAsync() 36 | { 37 | throw new InvalidOperationException(); 38 | } 39 | 40 | async Task ThrowOrValueAsync() 41 | { 42 | throw new InvalidOperationException(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/EnumerableAsyncExtensions.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | 6 | namespace Cysharp.Threading.Tasks 7 | { 8 | public static class EnumerableAsyncExtensions 9 | { 10 | // overload resolver - .Select(async x => { }) : IEnumerable> 11 | 12 | public static IEnumerable Select(this IEnumerable source, Func selector) 13 | { 14 | return System.Linq.Enumerable.Select(source, selector); 15 | } 16 | 17 | public static IEnumerable> Select(this IEnumerable source, Func> selector) 18 | { 19 | return System.Linq.Enumerable.Select(source, selector); 20 | } 21 | 22 | public static IEnumerable Select(this IEnumerable source, Func selector) 23 | { 24 | return System.Linq.Enumerable.Select(source, selector); 25 | } 26 | 27 | public static IEnumerable> Select(this IEnumerable source, Func> selector) 28 | { 29 | return System.Linq.Enumerable.Select(source, selector); 30 | } 31 | } 32 | } 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Empty.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | 3 | namespace Cysharp.Threading.Tasks.Linq 4 | { 5 | public static partial class UniTaskAsyncEnumerable 6 | { 7 | public static IUniTaskAsyncEnumerable Empty() 8 | { 9 | return Cysharp.Threading.Tasks.Linq.Empty.Instance; 10 | } 11 | } 12 | 13 | internal class Empty : IUniTaskAsyncEnumerable 14 | { 15 | public static readonly IUniTaskAsyncEnumerable Instance = new Empty(); 16 | 17 | Empty() 18 | { 19 | } 20 | 21 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 22 | { 23 | return _Empty.Instance; 24 | } 25 | 26 | class _Empty : IUniTaskAsyncEnumerator 27 | { 28 | public static readonly IUniTaskAsyncEnumerator Instance = new _Empty(); 29 | 30 | _Empty() 31 | { 32 | } 33 | 34 | public T Current => default; 35 | 36 | public UniTask MoveNextAsync() 37 | { 38 | return CompletedTasks.False; 39 | } 40 | 41 | public UniTask DisposeAsync() 42 | { 43 | return default; 44 | } 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/CancellationTokenTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using FluentAssertions; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading; 8 | using System.Threading.Channels; 9 | using Cysharp.Threading.Tasks.Linq; 10 | using System.Threading.Tasks; 11 | using Xunit; 12 | 13 | namespace NetCoreTests 14 | { 15 | public class CancellationTokenTest 16 | { 17 | [Fact] 18 | public async Task WaitUntilCanceled() 19 | { 20 | var cts = new CancellationTokenSource(); 21 | 22 | cts.CancelAfter(TimeSpan.FromSeconds(1.5)); 23 | 24 | var now = DateTime.UtcNow; 25 | 26 | await cts.Token.WaitUntilCanceled(); 27 | 28 | var elapsed = DateTime.UtcNow - now; 29 | 30 | elapsed.Should().BeGreaterThan(TimeSpan.FromSeconds(1)); 31 | } 32 | 33 | [Fact] 34 | public void AlreadyCanceled() 35 | { 36 | var cts = new CancellationTokenSource(); 37 | 38 | cts.Cancel(); 39 | 40 | cts.Token.WaitUntilCanceled().GetAwaiter().IsCompleted.Should().BeTrue(); 41 | } 42 | 43 | [Fact] 44 | public void None() 45 | { 46 | CancellationToken.None.WaitUntilCanceled().GetAwaiter().IsCompleted.Should().BeTrue(); 47 | } 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToList.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System.Collections.Generic; 3 | using System.Threading; 4 | 5 | namespace Cysharp.Threading.Tasks.Linq 6 | { 7 | public static partial class UniTaskAsyncEnumerable 8 | { 9 | public static UniTask> ToListAsync(this IUniTaskAsyncEnumerable source, CancellationToken cancellationToken = default) 10 | { 11 | Error.ThrowArgumentNullException(source, nameof(source)); 12 | 13 | return Cysharp.Threading.Tasks.Linq.ToList.ToListAsync(source, cancellationToken); 14 | } 15 | } 16 | 17 | internal static class ToList 18 | { 19 | internal static async UniTask> ToListAsync(IUniTaskAsyncEnumerable source, CancellationToken cancellationToken) 20 | { 21 | var list = new List(); 22 | 23 | var e = source.GetAsyncEnumerator(cancellationToken); 24 | try 25 | { 26 | while (await e.MoveNextAsync()) 27 | { 28 | list.Add(e.Current); 29 | } 30 | } 31 | finally 32 | { 33 | if (e != null) 34 | { 35 | await e.DisposeAsync(); 36 | } 37 | } 38 | 39 | return list; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/WhenAnyTest.cs: -------------------------------------------------------------------------------- 1 | #if CSHARP_7_OR_LATER || (UNITY_2018_3_OR_NEWER && (NET_STANDARD_2_0 || NET_4_6)) 2 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 3 | 4 | using UnityEngine; 5 | using System; 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using System.Linq; 9 | using System.Text; 10 | using UnityEngine.UI; 11 | using UnityEngine.Scripting; 12 | using Cysharp.Threading.Tasks; 13 | using Unity.Collections; 14 | using System.Threading; 15 | using NUnit.Framework; 16 | using UnityEngine.TestTools; 17 | using FluentAssertions; 18 | 19 | namespace Cysharp.Threading.TasksTests 20 | { 21 | public class WhenAnyTest 22 | { 23 | [UnityTest] 24 | public IEnumerator WhenAnyCanceled() => UniTask.ToCoroutine(async () => 25 | { 26 | var cts = new CancellationTokenSource(); 27 | var successDelayTask = UniTask.Delay(TimeSpan.FromSeconds(1)); 28 | var cancelTask = UniTask.Delay(TimeSpan.FromSeconds(1), cancellationToken: cts.Token); 29 | cts.CancelAfterSlim(200); 30 | 31 | try 32 | { 33 | var r = await UniTask.WhenAny(new[] { successDelayTask, cancelTask }); 34 | } 35 | catch (Exception ex) 36 | { 37 | ex.Should().BeAssignableTo(); 38 | } 39 | }); 40 | } 41 | } 42 | 43 | #endif -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTask.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UniTask", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": false, 8 | "overrideReferences": false, 9 | "precompiledReferences": [], 10 | "autoReferenced": true, 11 | "defineConstraints": [], 12 | "versionDefines": [ 13 | { 14 | "name": "com.unity.modules.assetbundle", 15 | "expression": "", 16 | "define": "UNITASK_ASSETBUNDLE_SUPPORT" 17 | }, 18 | { 19 | "name": "com.unity.modules.physics", 20 | "expression": "", 21 | "define": "UNITASK_PHYSICS_SUPPORT" 22 | }, 23 | { 24 | "name": "com.unity.modules.physics2d", 25 | "expression": "", 26 | "define": "UNITASK_PHYSICS2D_SUPPORT" 27 | }, 28 | { 29 | "name": "com.unity.modules.particlesystem", 30 | "expression": "", 31 | "define": "UNITASK_PARTICLESYSTEM_SUPPORT" 32 | }, 33 | { 34 | "name": "com.unity.ugui", 35 | "expression": "", 36 | "define": "UNITASK_UGUI_SUPPORT" 37 | }, 38 | { 39 | "name": "com.unity.modules.unitywebrequest", 40 | "expression": "", 41 | "define": "UNITASK_WEBREQUEST_SUPPORT" 42 | } 43 | ], 44 | "noEngineReferences": false 45 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Internal/PooledDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.CompilerServices; 3 | 4 | namespace Cysharp.Threading.Tasks.Internal 5 | { 6 | internal sealed class PooledDelegate : ITaskPoolNode> 7 | { 8 | static TaskPool> pool; 9 | 10 | PooledDelegate nextNode; 11 | public ref PooledDelegate NextNode => ref nextNode; 12 | 13 | static PooledDelegate() 14 | { 15 | TaskPool.RegisterSizeGetter(typeof(PooledDelegate), () => pool.Size); 16 | } 17 | 18 | readonly Action runDelegate; 19 | Action continuation; 20 | 21 | PooledDelegate() 22 | { 23 | runDelegate = Run; 24 | } 25 | 26 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 27 | public static Action Create(Action continuation) 28 | { 29 | if (!pool.TryPop(out var item)) 30 | { 31 | item = new PooledDelegate(); 32 | } 33 | 34 | item.continuation = continuation; 35 | return item.runDelegate; 36 | } 37 | 38 | [MethodImpl(MethodImplOptions.AggressiveInlining)] 39 | void Run(T _) 40 | { 41 | var call = continuation; 42 | continuation = null; 43 | if (call != null) 44 | { 45 | pool.TryPush(this); 46 | call.Invoke(); 47 | } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Editor/WhenAnyTestEditor.cs: -------------------------------------------------------------------------------- 1 | //#if CSHARP_7_OR_LATER || (UNITY_2018_3_OR_NEWER && (NET_STANDARD_2_0 || NET_4_6)) 2 | //#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 3 | 4 | //using UnityEngine; 5 | //using System; 6 | //using System.Collections; 7 | //using System.Collections.Generic; 8 | //using System.Linq; 9 | //using System.Text; 10 | //using UnityEngine.UI; 11 | //using UnityEngine.Scripting; 12 | //using Cysharp.Threading.Tasks; 13 | //using Unity.Collections; 14 | //using System.Threading; 15 | //using NUnit.Framework; 16 | //using UnityEngine.TestTools; 17 | //using FluentAssertions; 18 | 19 | //namespace Cysharp.Threading.TasksTests 20 | //{ 21 | // public class WhenAnyTest 22 | // { 23 | // [UnityTest] 24 | // public IEnumerator WhenAnyCanceled() => UniTask.ToCoroutine(async () => 25 | // { 26 | // var cts = new CancellationTokenSource(); 27 | // var successDelayTask = UniTask.Delay(TimeSpan.FromSeconds(1)); 28 | // var cancelTask = UniTask.Delay(TimeSpan.FromSeconds(1), cancellationToken: cts.Token); 29 | // cts.CancelAfterSlim(200); 30 | 31 | // try 32 | // { 33 | // var r = await UniTask.WhenAny(new[] { successDelayTask, cancelTask }); 34 | // } 35 | // catch (Exception ex) 36 | // { 37 | // ex.Should().BeAssignableTo(); 38 | // } 39 | // }); 40 | // } 41 | //} 42 | 43 | //#endif -------------------------------------------------------------------------------- /src/UniTask.Analyzer/UniTask.Analyzer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | library 4 | netstandard2.0 5 | latest 6 | enable 7 | true 8 | $(TargetsForTfmSpecificContentInPackage);PackBuildOutputs 9 | false 10 | false 11 | true 12 | true 13 | 14 | 15 | 16 | 17 | runtime; build; native; contentfiles; analyzers 18 | all 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Tests/Preserve.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using FluentAssertions; 3 | using NUnit.Framework; 4 | using System; 5 | using System.Collections; 6 | using System.Collections.Generic; 7 | using System.Linq; 8 | using System.Text; 9 | using System.Threading; 10 | using System.Threading.Tasks; 11 | using UnityEngine; 12 | using UnityEngine.TestTools; 13 | 14 | namespace Cysharp.Threading.TasksTests 15 | { 16 | public class Preserve 17 | { 18 | public Preserve() 19 | { 20 | // TaskPool.SetMaxPoolSize(0); 21 | } 22 | 23 | [UnityTest] 24 | public IEnumerator AwaitTwice() => UniTask.ToCoroutine(async () => 25 | { 26 | var delay = UniTask.DelayFrame(5); 27 | await delay; 28 | 29 | try 30 | { 31 | await delay; 32 | Assert.Fail("should throw exception."); 33 | } 34 | catch (InvalidOperationException) 35 | { 36 | 37 | } 38 | }); 39 | 40 | [UnityTest] 41 | public IEnumerator PreserveAllowTwice() => UniTask.ToCoroutine(async () => 42 | { 43 | await UniTask.Yield(PlayerLoopTiming.Update); 44 | 45 | var delay = UniTask.DelayFrame(5, PlayerLoopTiming.PostLateUpdate).Preserve(); 46 | 47 | var before = UnityEngine.Time.frameCount; // 0 48 | 49 | await delay; 50 | var afterOne = UnityEngine.Time.frameCount; // 5 51 | 52 | await delay; 53 | var afterTwo = UnityEngine.Time.frameCount; // 5 54 | 55 | (afterOne - before).Should().Be(5); 56 | afterOne.Should().Be(afterTwo); 57 | }); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Never.cs: -------------------------------------------------------------------------------- 1 | using System.Threading; 2 | 3 | namespace Cysharp.Threading.Tasks.Linq 4 | { 5 | public static partial class UniTaskAsyncEnumerable 6 | { 7 | public static IUniTaskAsyncEnumerable Never() 8 | { 9 | return Cysharp.Threading.Tasks.Linq.Never.Instance; 10 | } 11 | } 12 | 13 | internal class Never : IUniTaskAsyncEnumerable 14 | { 15 | public static readonly IUniTaskAsyncEnumerable Instance = new Never(); 16 | 17 | Never() 18 | { 19 | } 20 | 21 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 22 | { 23 | return new _Never(cancellationToken); 24 | } 25 | 26 | class _Never : IUniTaskAsyncEnumerator 27 | { 28 | CancellationToken cancellationToken; 29 | 30 | public _Never(CancellationToken cancellationToken) 31 | { 32 | this.cancellationToken = cancellationToken; 33 | } 34 | 35 | public T Current => default; 36 | 37 | public UniTask MoveNextAsync() 38 | { 39 | var tcs = new UniTaskCompletionSource(); 40 | 41 | cancellationToken.Register(state => 42 | { 43 | var task = (UniTaskCompletionSource)state; 44 | task.TrySetCanceled(cancellationToken); 45 | }, tcs); 46 | 47 | return tcs.Task; 48 | } 49 | 50 | public UniTask DisposeAsync() 51 | { 52 | return default; 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Throw.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System; 3 | using System.Threading; 4 | 5 | namespace Cysharp.Threading.Tasks.Linq 6 | { 7 | public static partial class UniTaskAsyncEnumerable 8 | { 9 | public static IUniTaskAsyncEnumerable Throw(Exception exception) 10 | { 11 | return new Throw(exception); 12 | } 13 | } 14 | 15 | internal class Throw : IUniTaskAsyncEnumerable 16 | { 17 | readonly Exception exception; 18 | 19 | public Throw(Exception exception) 20 | { 21 | this.exception = exception; 22 | } 23 | 24 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 25 | { 26 | return new _Throw(exception, cancellationToken); 27 | } 28 | 29 | class _Throw : IUniTaskAsyncEnumerator 30 | { 31 | readonly Exception exception; 32 | CancellationToken cancellationToken; 33 | 34 | public _Throw(Exception exception, CancellationToken cancellationToken) 35 | { 36 | this.exception = exception; 37 | this.cancellationToken = cancellationToken; 38 | } 39 | 40 | public TValue Current => default; 41 | 42 | public UniTask MoveNextAsync() 43 | { 44 | cancellationToken.ThrowIfCancellationRequested(); 45 | return UniTask.FromException(exception); 46 | } 47 | 48 | public UniTask DisposeAsync() 49 | { 50 | return default; 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /docs/docfx.json: -------------------------------------------------------------------------------- 1 | { 2 | "metadata": [ 3 | { 4 | "src": [ 5 | { 6 | "files": [ 7 | "UniTask/Library/ScriptAssemblies/UniTask*.dll" 8 | ], 9 | "exclude": [ 10 | "UniTask/Library/ScriptAssemblies/UniTask.Tests.dll", 11 | "UniTask/Library/ScriptAssemblies/UniTask.Tests.Editor.dll" 12 | ], 13 | "src": "../src" 14 | } 15 | ], 16 | "dest": "api", 17 | "disableGitFeatures": false, 18 | "disableDefaultFilter": false 19 | } 20 | ], 21 | "build": { 22 | "globalMetadata": { 23 | "_disableContribution": true, 24 | "_appTitle": "UniTask" 25 | }, 26 | "content": [ 27 | { 28 | "files": [ 29 | "api/**.yml", 30 | "api/index.md" 31 | ] 32 | }, 33 | { 34 | "files": [ 35 | "articles/**.md", 36 | "articles/**/toc.yml", 37 | "toc.yml", 38 | "*.md" 39 | ] 40 | } 41 | ], 42 | "resource": [ 43 | { 44 | "files": [ 45 | "images/**" 46 | ] 47 | } 48 | ], 49 | "overwrite": [ 50 | { 51 | "files": [ 52 | "apidoc/**.md" 53 | ], 54 | "exclude": [ 55 | "obj/**", 56 | "_site/**" 57 | ] 58 | } 59 | ], 60 | "dest": "_site", 61 | "globalMetadataFiles": [], 62 | "fileMetadataFiles": [], 63 | "template": [ 64 | "_DocfxTemplate/templates/default-v2.5.2", 65 | "_DocfxTemplate/templates/cysharp" 66 | ], 67 | "postProcessors": [], 68 | "markdownEngineName": "markdig", 69 | "noLangKeyword": false, 70 | "keepFileLink": false, 71 | "cleanupCacheHistory": false 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Cast.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System; 3 | using System.Threading; 4 | 5 | namespace Cysharp.Threading.Tasks.Linq 6 | { 7 | public static partial class UniTaskAsyncEnumerable 8 | { 9 | public static IUniTaskAsyncEnumerable Cast(this IUniTaskAsyncEnumerable source) 10 | { 11 | Error.ThrowArgumentNullException(source, nameof(source)); 12 | 13 | return new Cast(source); 14 | } 15 | } 16 | 17 | internal sealed class Cast : IUniTaskAsyncEnumerable 18 | { 19 | readonly IUniTaskAsyncEnumerable source; 20 | 21 | public Cast(IUniTaskAsyncEnumerable source) 22 | { 23 | this.source = source; 24 | } 25 | 26 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 27 | { 28 | return new _Cast(source, cancellationToken); 29 | } 30 | 31 | class _Cast : AsyncEnumeratorBase 32 | { 33 | public _Cast(IUniTaskAsyncEnumerable source, CancellationToken cancellationToken) 34 | 35 | : base(source, cancellationToken) 36 | { 37 | } 38 | 39 | protected override bool TryMoveNextCore(bool sourceHasCurrent, out bool result) 40 | { 41 | if (sourceHasCurrent) 42 | { 43 | Current = (TResult)SourceCurrent; 44 | result = true; 45 | return true; 46 | } 47 | 48 | result = false; 49 | return true; 50 | } 51 | } 52 | } 53 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/ExceptionExamples.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using System; 3 | using System.Collections.Generic; 4 | using UnityEngine; 5 | // using UnityEngine.AddressableAssets; 6 | 7 | /*UNniTastWhenAnyTester*/ 8 | 9 | [ExecuteInEditMode] 10 | public class ExceptionExamples : MonoBehaviour 11 | { 12 | public bool apply = false; 13 | 14 | private async UniTaskVoid Update() 15 | { 16 | if (apply) 17 | { 18 | apply = false; 19 | await LaunchTasksAndDetectWhenAnyDone(5); 20 | } 21 | } 22 | 23 | private async UniTask LaunchTasksAndDetectWhenAnyDone(int nbTasks) 24 | { 25 | List> sleeptasks = new List>(); 26 | for (int i = 0; i < nbTasks; i++) 27 | { 28 | sleeptasks.Add(SleepAndReturnTrue(i).ToAsyncLazy().Task); 29 | } 30 | while (sleeptasks.Count > 0) 31 | { 32 | Debug.Log(DateTime.Now.ToString() + " waiting for " + sleeptasks.Count + " tasks..."); 33 | try 34 | { 35 | (int index, int taskID) = await UniTask.WhenAny(sleeptasks); 36 | Debug.Log(DateTime.Now.ToString() + " Sleep task " + taskID + " done"); 37 | sleeptasks.RemoveAt(index); 38 | } 39 | catch 40 | { 41 | throw; 42 | //Debug.Log("Error: " + e.Message); 43 | //return; 44 | } 45 | } 46 | } 47 | 48 | private async UniTask SleepAndReturnTrue(int taskIndex) 49 | { 50 | await UniTask.Delay(100); 51 | return taskIndex; 52 | } 53 | 54 | //void AddressablesTest() 55 | //{ 56 | // Addressables.ClearDependencyCacheAsync("key", true); 57 | //} 58 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/MoveNextSource.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Cysharp.Threading.Tasks 4 | { 5 | public abstract class MoveNextSource : IUniTaskSource 6 | { 7 | protected UniTaskCompletionSourceCore completionSource; 8 | 9 | public bool GetResult(short token) 10 | { 11 | return completionSource.GetResult(token); 12 | } 13 | 14 | public UniTaskStatus GetStatus(short token) 15 | { 16 | return completionSource.GetStatus(token); 17 | } 18 | 19 | public void OnCompleted(Action continuation, object state, short token) 20 | { 21 | completionSource.OnCompleted(continuation, state, token); 22 | } 23 | 24 | public UniTaskStatus UnsafeGetStatus() 25 | { 26 | return completionSource.UnsafeGetStatus(); 27 | } 28 | 29 | void IUniTaskSource.GetResult(short token) 30 | { 31 | completionSource.GetResult(token); 32 | } 33 | 34 | protected bool TryGetResult(UniTask.Awaiter awaiter, out T result) 35 | { 36 | try 37 | { 38 | result = awaiter.GetResult(); 39 | return true; 40 | } 41 | catch (Exception ex) 42 | { 43 | completionSource.TrySetException(ex); 44 | result = default; 45 | return false; 46 | } 47 | } 48 | 49 | protected bool TryGetResult(UniTask.Awaiter awaiter) 50 | { 51 | try 52 | { 53 | awaiter.GetResult(); 54 | return true; 55 | } 56 | catch (Exception ex) 57 | { 58 | completionSource.TrySetException(ex); 59 | return false; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Return.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System.Threading; 3 | 4 | namespace Cysharp.Threading.Tasks.Linq 5 | { 6 | public static partial class UniTaskAsyncEnumerable 7 | { 8 | public static IUniTaskAsyncEnumerable Return(TValue value) 9 | { 10 | return new Return(value); 11 | } 12 | } 13 | 14 | internal class Return : IUniTaskAsyncEnumerable 15 | { 16 | readonly TValue value; 17 | 18 | public Return(TValue value) 19 | { 20 | this.value = value; 21 | } 22 | 23 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 24 | { 25 | return new _Return(value, cancellationToken); 26 | } 27 | 28 | class _Return : IUniTaskAsyncEnumerator 29 | { 30 | readonly TValue value; 31 | CancellationToken cancellationToken; 32 | 33 | bool called; 34 | 35 | public _Return(TValue value, CancellationToken cancellationToken) 36 | { 37 | this.value = value; 38 | this.cancellationToken = cancellationToken; 39 | this.called = false; 40 | } 41 | 42 | public TValue Current => value; 43 | 44 | public UniTask MoveNextAsync() 45 | { 46 | cancellationToken.ThrowIfCancellationRequested(); 47 | 48 | if (!called) 49 | { 50 | called = true; 51 | return CompletedTasks.True; 52 | } 53 | 54 | return CompletedTasks.False; 55 | } 56 | 57 | public UniTask DisposeAsync() 58 | { 59 | return default; 60 | } 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Contains.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Threading; 5 | 6 | namespace Cysharp.Threading.Tasks.Linq 7 | { 8 | public static partial class UniTaskAsyncEnumerable 9 | { 10 | public static UniTask ContainsAsync(this IUniTaskAsyncEnumerable source, TSource value, CancellationToken cancellationToken = default) 11 | { 12 | return ContainsAsync(source, value, EqualityComparer.Default, cancellationToken); 13 | } 14 | 15 | public static UniTask ContainsAsync(this IUniTaskAsyncEnumerable source, TSource value, IEqualityComparer comparer, CancellationToken cancellationToken = default) 16 | { 17 | Error.ThrowArgumentNullException(source, nameof(source)); 18 | Error.ThrowArgumentNullException(comparer, nameof(comparer)); 19 | 20 | return Contains.ContainsAsync(source, value, comparer, cancellationToken); 21 | } 22 | } 23 | 24 | internal static class Contains 25 | { 26 | internal static async UniTask ContainsAsync(IUniTaskAsyncEnumerable source, TSource value, IEqualityComparer comparer, CancellationToken cancellationToken) 27 | { 28 | var e = source.GetAsyncEnumerator(cancellationToken); 29 | try 30 | { 31 | while (await e.MoveNextAsync()) 32 | { 33 | if (comparer.Equals(value, e.Current)) 34 | { 35 | return true; 36 | } 37 | } 38 | 39 | return false; 40 | } 41 | finally 42 | { 43 | if (e != null) 44 | { 45 | await e.DisposeAsync(); 46 | } 47 | } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/Linq/Factory.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Linq; 2 | using FluentAssertions; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using Xunit; 8 | 9 | namespace NetCoreTests.Linq 10 | { 11 | public class Factory 12 | { 13 | [Theory] 14 | [InlineData(0, 10)] 15 | [InlineData(0, 0)] 16 | [InlineData(1, 5)] 17 | [InlineData(1, 0)] 18 | [InlineData(0, 11)] 19 | [InlineData(1, 11)] 20 | public async Task RangeTest(int start, int count) 21 | { 22 | var xs = await UniTaskAsyncEnumerable.Range(start, count).ToArrayAsync(); 23 | var ys = Enumerable.Range(start, count).ToArray(); 24 | 25 | xs.Should().Equal(ys); 26 | } 27 | 28 | [Theory] 29 | [InlineData("foo", 0)] 30 | [InlineData("bar", 1)] 31 | [InlineData("baz", 3)] 32 | [InlineData("foobar", 10)] 33 | [InlineData("foobarbaz", 11)] 34 | public async Task RepeatTest(string value, int count) 35 | { 36 | var xs = await UniTaskAsyncEnumerable.Repeat(value, count).ToArrayAsync(); 37 | var ys = Enumerable.Repeat(value, count).ToArray(); 38 | 39 | xs.Should().Equal(ys); 40 | } 41 | 42 | [Fact] 43 | public async Task EmptyTest() 44 | { 45 | var xs = await UniTaskAsyncEnumerable.Empty().ToArrayAsync(); 46 | var ys = Enumerable.Empty().ToArray(); 47 | 48 | xs.Should().Equal(ys); 49 | } 50 | 51 | [Theory] 52 | [InlineData(100)] 53 | [InlineData((string)null)] 54 | [InlineData("foo")] 55 | public async Task ReturnTest(T value) 56 | { 57 | var xs = await UniTaskAsyncEnumerable.Return(value).ToArrayAsync(); 58 | 59 | xs.Length.Should().Be(1); 60 | xs[0].Should().Be(value); 61 | } 62 | 63 | } 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToHashSet.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System.Collections.Generic; 3 | using System.Threading; 4 | 5 | namespace Cysharp.Threading.Tasks.Linq 6 | { 7 | public static partial class UniTaskAsyncEnumerable 8 | { 9 | public static UniTask> ToHashSetAsync(this IUniTaskAsyncEnumerable source, CancellationToken cancellationToken = default) 10 | { 11 | Error.ThrowArgumentNullException(source, nameof(source)); 12 | 13 | return Cysharp.Threading.Tasks.Linq.ToHashSet.ToHashSetAsync(source, EqualityComparer.Default, cancellationToken); 14 | } 15 | 16 | public static UniTask> ToHashSetAsync(this IUniTaskAsyncEnumerable source, IEqualityComparer comparer, CancellationToken cancellationToken = default) 17 | { 18 | Error.ThrowArgumentNullException(source, nameof(source)); 19 | Error.ThrowArgumentNullException(comparer, nameof(comparer)); 20 | 21 | return Cysharp.Threading.Tasks.Linq.ToHashSet.ToHashSetAsync(source, comparer, cancellationToken); 22 | } 23 | } 24 | 25 | internal static class ToHashSet 26 | { 27 | internal static async UniTask> ToHashSetAsync(IUniTaskAsyncEnumerable source, IEqualityComparer comparer, CancellationToken cancellationToken) 28 | { 29 | var set = new HashSet(comparer); 30 | 31 | var e = source.GetAsyncEnumerator(cancellationToken); 32 | try 33 | { 34 | while (await e.MoveNextAsync()) 35 | { 36 | set.Add(e.Current); 37 | } 38 | } 39 | finally 40 | { 41 | if (e != null) 42 | { 43 | await e.DisposeAsync(); 44 | } 45 | } 46 | 47 | return set; 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/Linq/PulbishTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using Cysharp.Threading.Tasks.Linq; 3 | using FluentAssertions; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Text; 7 | using System.Threading; 8 | using System.Threading.Tasks; 9 | using Xunit; 10 | 11 | namespace NetCoreTests.Linq 12 | { 13 | public class PublishTest 14 | { 15 | [Fact] 16 | public async Task Normal() 17 | { 18 | var rp = new AsyncReactiveProperty(1); 19 | 20 | var multicast = rp.Publish(); 21 | 22 | var a = multicast.ToArrayAsync(); 23 | var b = multicast.Take(2).ToArrayAsync(); 24 | 25 | var disp = multicast.Connect(); 26 | 27 | rp.Value = 2; 28 | 29 | (await b).Should().Equal(1, 2); 30 | 31 | var c = multicast.ToArrayAsync(); 32 | 33 | rp.Value = 3; 34 | rp.Value = 4; 35 | rp.Value = 5; 36 | 37 | rp.Dispose(); 38 | 39 | (await a).Should().Equal(1, 2, 3, 4, 5); 40 | (await c).Should().Equal(3, 4, 5); 41 | 42 | disp.Dispose(); 43 | } 44 | 45 | [Fact] 46 | public async Task Cancel() 47 | { 48 | var rp = new AsyncReactiveProperty(1); 49 | 50 | var multicast = rp.Publish(); 51 | 52 | var a = multicast.ToArrayAsync(); 53 | var b = multicast.Take(2).ToArrayAsync(); 54 | 55 | var disp = multicast.Connect(); 56 | 57 | rp.Value = 2; 58 | 59 | (await b).Should().Equal(1, 2); 60 | 61 | var c = multicast.ToArrayAsync(); 62 | 63 | rp.Value = 3; 64 | 65 | disp.Dispose(); 66 | 67 | rp.Value = 4; 68 | rp.Value = 5; 69 | 70 | rp.Dispose(); 71 | 72 | await Assert.ThrowsAsync(async () => await a); 73 | await Assert.ThrowsAsync(async () => await c); 74 | } 75 | 76 | 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/OfType.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System; 3 | using System.Threading; 4 | 5 | namespace Cysharp.Threading.Tasks.Linq 6 | { 7 | public static partial class UniTaskAsyncEnumerable 8 | { 9 | public static IUniTaskAsyncEnumerable OfType(this IUniTaskAsyncEnumerable source) 10 | { 11 | Error.ThrowArgumentNullException(source, nameof(source)); 12 | 13 | return new OfType(source); 14 | } 15 | } 16 | 17 | internal sealed class OfType : IUniTaskAsyncEnumerable 18 | { 19 | readonly IUniTaskAsyncEnumerable source; 20 | 21 | public OfType(IUniTaskAsyncEnumerable source) 22 | { 23 | this.source = source; 24 | } 25 | 26 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 27 | { 28 | return new _OfType(source, cancellationToken); 29 | } 30 | 31 | class _OfType : AsyncEnumeratorBase 32 | { 33 | public _OfType(IUniTaskAsyncEnumerable source, CancellationToken cancellationToken) 34 | 35 | : base(source, cancellationToken) 36 | { 37 | } 38 | 39 | protected override bool TryMoveNextCore(bool sourceHasCurrent, out bool result) 40 | { 41 | if (sourceHasCurrent) 42 | { 43 | if (SourceCurrent is TResult castCurent) 44 | { 45 | Current = castCurent; 46 | result = true; 47 | return true; 48 | } 49 | else 50 | { 51 | result = default; 52 | return false; 53 | } 54 | } 55 | 56 | result = false; 57 | return true; 58 | } 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /src/UniTask.NetCoreTests/WhenEachTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using FluentAssertions; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | using Xunit; 9 | 10 | namespace NetCoreTests 11 | { 12 | public class WhenEachTest 13 | { 14 | [Fact] 15 | public async Task Each() 16 | { 17 | var a = Delay(1, 3000); 18 | var b = Delay(2, 1000); 19 | var c = Delay(3, 2000); 20 | 21 | var l = new List(); 22 | await foreach (var item in UniTask.WhenEach(a, b, c)) 23 | { 24 | l.Add(item.Result); 25 | } 26 | 27 | l.Should().Equal(2, 3, 1); 28 | } 29 | 30 | [Fact] 31 | public async Task Error() 32 | { 33 | var a = Delay2(1, 3000); 34 | var b = Delay2(2, 1000); 35 | var c = Delay2(3, 2000); 36 | 37 | var l = new List>(); 38 | await foreach (var item in UniTask.WhenEach(a, b, c)) 39 | { 40 | l.Add(item); 41 | } 42 | 43 | l[0].IsCompletedSuccessfully.Should().BeTrue(); 44 | l[0].IsFaulted.Should().BeFalse(); 45 | l[0].Result.Should().Be(2); 46 | 47 | l[1].IsCompletedSuccessfully.Should().BeFalse(); 48 | l[1].IsFaulted.Should().BeTrue(); 49 | l[1].Exception.Message.Should().Be("ERROR"); 50 | 51 | l[2].IsCompletedSuccessfully.Should().BeTrue(); 52 | l[2].IsFaulted.Should().BeFalse(); 53 | l[2].Result.Should().Be(1); 54 | } 55 | 56 | async UniTask Delay(int id, int sleep) 57 | { 58 | await Task.Delay(sleep); 59 | return id; 60 | } 61 | 62 | async UniTask Delay2(int id, int sleep) 63 | { 64 | await Task.Delay(sleep); 65 | if (id == 3) throw new Exception("ERROR"); 66 | return id; 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/CancellationTokenSourceExtensions.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 2 | 3 | using System.Threading; 4 | using UnityEngine; 5 | using Cysharp.Threading.Tasks.Triggers; 6 | using System; 7 | using Cysharp.Threading.Tasks.Internal; 8 | 9 | namespace Cysharp.Threading.Tasks 10 | { 11 | 12 | public static partial class CancellationTokenSourceExtensions 13 | { 14 | readonly static Action CancelCancellationTokenSourceStateDelegate = new Action(CancelCancellationTokenSourceState); 15 | 16 | static void CancelCancellationTokenSourceState(object state) 17 | { 18 | var cts = (CancellationTokenSource)state; 19 | cts.Cancel(); 20 | } 21 | 22 | public static IDisposable CancelAfterSlim(this CancellationTokenSource cts, int millisecondsDelay, DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update) 23 | { 24 | return CancelAfterSlim(cts, TimeSpan.FromMilliseconds(millisecondsDelay), delayType, delayTiming); 25 | } 26 | 27 | public static IDisposable CancelAfterSlim(this CancellationTokenSource cts, TimeSpan delayTimeSpan, DelayType delayType = DelayType.DeltaTime, PlayerLoopTiming delayTiming = PlayerLoopTiming.Update) 28 | { 29 | return PlayerLoopTimer.StartNew(delayTimeSpan, false, delayType, delayTiming, cts.Token, CancelCancellationTokenSourceStateDelegate, cts); 30 | } 31 | 32 | public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, Component component) 33 | { 34 | RegisterRaiseCancelOnDestroy(cts, component.gameObject); 35 | } 36 | 37 | public static void RegisterRaiseCancelOnDestroy(this CancellationTokenSource cts, GameObject gameObject) 38 | { 39 | var trigger = gameObject.GetAsyncDestroyTrigger(); 40 | trigger.CancellationToken.RegisterWithoutCaptureExecutionContext(CancelCancellationTokenSourceStateDelegate, cts); 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /src/UniTask/Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.cysharp.runtimeunittesttoolkit": "https://github.com/Cysharp/RuntimeUnitTestToolkit.git?path=RuntimeUnitTestToolkit/Assets/RuntimeUnitTestToolkit#2.6.0", 4 | "com.unity.collab-proxy": "2.4.3", 5 | "com.unity.ide.rider": "3.0.31", 6 | "com.unity.ide.visualstudio": "2.0.22", 7 | "com.unity.ide.vscode": "1.2.5", 8 | "com.unity.test-framework": "1.1.33", 9 | "com.unity.textmeshpro": "3.0.6", 10 | "com.unity.timeline": "1.7.6", 11 | "com.unity.toolchain.win-x86_64-linux-x86_64": "2.0.9", 12 | "com.unity.ugui": "1.0.0", 13 | "com.unity.modules.ai": "1.0.0", 14 | "com.unity.modules.androidjni": "1.0.0", 15 | "com.unity.modules.animation": "1.0.0", 16 | "com.unity.modules.assetbundle": "1.0.0", 17 | "com.unity.modules.audio": "1.0.0", 18 | "com.unity.modules.cloth": "1.0.0", 19 | "com.unity.modules.director": "1.0.0", 20 | "com.unity.modules.imageconversion": "1.0.0", 21 | "com.unity.modules.imgui": "1.0.0", 22 | "com.unity.modules.jsonserialize": "1.0.0", 23 | "com.unity.modules.particlesystem": "1.0.0", 24 | "com.unity.modules.physics": "1.0.0", 25 | "com.unity.modules.physics2d": "1.0.0", 26 | "com.unity.modules.screencapture": "1.0.0", 27 | "com.unity.modules.terrain": "1.0.0", 28 | "com.unity.modules.terrainphysics": "1.0.0", 29 | "com.unity.modules.tilemap": "1.0.0", 30 | "com.unity.modules.ui": "1.0.0", 31 | "com.unity.modules.uielements": "1.0.0", 32 | "com.unity.modules.umbra": "1.0.0", 33 | "com.unity.modules.unityanalytics": "1.0.0", 34 | "com.unity.modules.unitywebrequest": "1.0.0", 35 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 36 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 37 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 38 | "com.unity.modules.unitywebrequestwww": "1.0.0", 39 | "com.unity.modules.vehicles": "1.0.0", 40 | "com.unity.modules.video": "1.0.0", 41 | "com.unity.modules.vr": "1.0.0", 42 | "com.unity.modules.wind": "1.0.0", 43 | "com.unity.modules.xr": "1.0.0" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ElementAt.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System; 3 | using System.Threading; 4 | 5 | namespace Cysharp.Threading.Tasks.Linq 6 | { 7 | public static partial class UniTaskAsyncEnumerable 8 | { 9 | public static UniTask ElementAtAsync(this IUniTaskAsyncEnumerable source, int index, CancellationToken cancellationToken = default) 10 | { 11 | Error.ThrowArgumentNullException(source, nameof(source)); 12 | 13 | return ElementAt.ElementAtAsync(source, index, cancellationToken, false); 14 | } 15 | 16 | public static UniTask ElementAtOrDefaultAsync(this IUniTaskAsyncEnumerable source, int index, CancellationToken cancellationToken = default) 17 | { 18 | Error.ThrowArgumentNullException(source, nameof(source)); 19 | 20 | return ElementAt.ElementAtAsync(source, index, cancellationToken, true); 21 | } 22 | } 23 | 24 | internal static class ElementAt 25 | { 26 | public static async UniTask ElementAtAsync(IUniTaskAsyncEnumerable source, int index, CancellationToken cancellationToken, bool defaultIfEmpty) 27 | { 28 | var e = source.GetAsyncEnumerator(cancellationToken); 29 | try 30 | { 31 | int i = 0; 32 | while (await e.MoveNextAsync()) 33 | { 34 | if (i++ == index) 35 | { 36 | return e.Current; 37 | } 38 | } 39 | 40 | if (defaultIfEmpty) 41 | { 42 | return default; 43 | } 44 | else 45 | { 46 | throw Error.ArgumentOutOfRange(nameof(index)); 47 | } 48 | } 49 | finally 50 | { 51 | if (e != null) 52 | { 53 | await e.DisposeAsync(); 54 | } 55 | } 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/ToArray.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Threading; 5 | 6 | namespace Cysharp.Threading.Tasks.Linq 7 | { 8 | public static partial class UniTaskAsyncEnumerable 9 | { 10 | public static UniTask ToArrayAsync(this IUniTaskAsyncEnumerable source, CancellationToken cancellationToken = default) 11 | { 12 | Error.ThrowArgumentNullException(source, nameof(source)); 13 | 14 | return Cysharp.Threading.Tasks.Linq.ToArray.ToArrayAsync(source, cancellationToken); 15 | } 16 | } 17 | 18 | internal static class ToArray 19 | { 20 | internal static async UniTask ToArrayAsync(IUniTaskAsyncEnumerable source, CancellationToken cancellationToken) 21 | { 22 | var pool = ArrayPool.Shared; 23 | var array = pool.Rent(16); 24 | 25 | TSource[] result = default; 26 | IUniTaskAsyncEnumerator e = default; 27 | try 28 | { 29 | e = source.GetAsyncEnumerator(cancellationToken); 30 | var i = 0; 31 | while (await e.MoveNextAsync()) 32 | { 33 | ArrayPoolUtil.EnsureCapacity(ref array, i, pool); 34 | array[i++] = e.Current; 35 | } 36 | 37 | if (i == 0) 38 | { 39 | result = Array.Empty(); 40 | } 41 | else 42 | { 43 | result = new TSource[i]; 44 | Array.Copy(array, result, i); 45 | } 46 | } 47 | finally 48 | { 49 | pool.Return(array, clearArray: !RuntimeHelpersAbstraction.IsWellKnownNoReferenceContainsType()); 50 | 51 | if (e != null) 52 | { 53 | await e.DisposeAsync(); 54 | } 55 | } 56 | 57 | return result; 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/Linq/Repeat.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks.Internal; 2 | using System.Threading; 3 | 4 | namespace Cysharp.Threading.Tasks.Linq 5 | { 6 | public static partial class UniTaskAsyncEnumerable 7 | { 8 | public static IUniTaskAsyncEnumerable Repeat(TElement element, int count) 9 | { 10 | if (count < 0) throw Error.ArgumentOutOfRange(nameof(count)); 11 | 12 | return new Repeat(element, count); 13 | } 14 | } 15 | 16 | internal class Repeat : IUniTaskAsyncEnumerable 17 | { 18 | readonly TElement element; 19 | readonly int count; 20 | 21 | public Repeat(TElement element, int count) 22 | { 23 | this.element = element; 24 | this.count = count; 25 | } 26 | 27 | public IUniTaskAsyncEnumerator GetAsyncEnumerator(CancellationToken cancellationToken = default) 28 | { 29 | return new _Repeat(element, count, cancellationToken); 30 | } 31 | 32 | class _Repeat : IUniTaskAsyncEnumerator 33 | { 34 | readonly TElement element; 35 | readonly int count; 36 | int remaining; 37 | CancellationToken cancellationToken; 38 | 39 | public _Repeat(TElement element, int count, CancellationToken cancellationToken) 40 | { 41 | this.element = element; 42 | this.count = count; 43 | this.cancellationToken = cancellationToken; 44 | 45 | this.remaining = count; 46 | } 47 | 48 | public TElement Current => element; 49 | 50 | public UniTask MoveNextAsync() 51 | { 52 | cancellationToken.ThrowIfCancellationRequested(); 53 | 54 | if (remaining-- != 0) 55 | { 56 | return CompletedTasks.True; 57 | } 58 | 59 | return CompletedTasks.False; 60 | } 61 | 62 | public UniTask DisposeAsync() 63 | { 64 | return default; 65 | } 66 | } 67 | } 68 | } -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 0 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Scenes/WaitWhileTest.cs: -------------------------------------------------------------------------------- 1 | using Cysharp.Threading.Tasks; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.Threading; 6 | using UnityEngine; 7 | 8 | // https://github.com/Cysharp/UniTask/issues/617 9 | 10 | public class WaitWhileTest : MonoBehaviour 11 | { 12 | private const float c_CallInterval = 0.3f; 13 | private float m_JustBeforeCallTime; 14 | 15 | private TaskObj m_TestObj; 16 | 17 | // Start is called before the first frame update 18 | void Start() 19 | { 20 | m_JustBeforeCallTime = Time.unscaledTime; 21 | m_TestObj = new TaskObj(); 22 | // m_TestObj.Test(CancellationToken.None).Forget(); 23 | } 24 | 25 | // Update is called once per frame 26 | void Update() 27 | { 28 | if (Time.unscaledTime - m_JustBeforeCallTime > c_CallInterval) 29 | { 30 | m_JustBeforeCallTime = Time.unscaledTime; 31 | m_TestObj.Test(CancellationToken.None).Forget(); 32 | } 33 | } 34 | } 35 | 36 | 37 | public class TaskObj 38 | { 39 | private CancellationTokenSource m_CancelTokenSource; 40 | private const float c_FinishElapsedTime = 0.1f; 41 | private float m_StartTime; 42 | public async UniTask Test(CancellationToken token) 43 | { 44 | try 45 | { 46 | CancelAndDisposeTokenSource(); 47 | m_CancelTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token); 48 | m_StartTime = Time.unscaledTime; 49 | await UniTask.WaitWhile(IsContinued, cancellationToken: m_CancelTokenSource.Token, cancelImmediately: true); 50 | Debug.Log("Task Finished"); 51 | } 52 | catch (OperationCanceledException) 53 | { 54 | Debug.LogWarning("Task Canceled"); 55 | } 56 | finally 57 | { 58 | CancelAndDisposeTokenSource(); 59 | } 60 | } 61 | 62 | private void CancelAndDisposeTokenSource() 63 | { 64 | m_CancelTokenSource?.Cancel(); 65 | m_CancelTokenSource?.Dispose(); 66 | m_CancelTokenSource = null; 67 | } 68 | 69 | private bool IsContinued() 70 | { 71 | return Time.unscaledTime - m_StartTime > c_FinishElapsedTime; 72 | } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UnityWebRequestException.cs: -------------------------------------------------------------------------------- 1 | #if ENABLE_UNITYWEBREQUEST && (!UNITY_2019_1_OR_NEWER || UNITASK_WEBREQUEST_SUPPORT) 2 | 3 | using System; 4 | using System.Collections.Generic; 5 | using UnityEngine.Networking; 6 | 7 | namespace Cysharp.Threading.Tasks 8 | { 9 | public class UnityWebRequestException : Exception 10 | { 11 | public UnityWebRequest UnityWebRequest { get; } 12 | #if UNITY_2020_2_OR_NEWER 13 | public UnityWebRequest.Result Result { get; } 14 | #else 15 | public bool IsNetworkError { get; } 16 | public bool IsHttpError { get; } 17 | #endif 18 | public string Error { get; } 19 | public string Text { get; } 20 | public long ResponseCode { get; } 21 | public Dictionary ResponseHeaders { get; } 22 | 23 | string msg; 24 | 25 | public UnityWebRequestException(UnityWebRequest unityWebRequest) 26 | { 27 | this.UnityWebRequest = unityWebRequest; 28 | #if UNITY_2020_2_OR_NEWER 29 | this.Result = unityWebRequest.result; 30 | #else 31 | this.IsNetworkError = unityWebRequest.isNetworkError; 32 | this.IsHttpError = unityWebRequest.isHttpError; 33 | #endif 34 | this.Error = unityWebRequest.error; 35 | this.ResponseCode = unityWebRequest.responseCode; 36 | if (UnityWebRequest.downloadHandler != null) 37 | { 38 | if (unityWebRequest.downloadHandler is DownloadHandlerBuffer dhb) 39 | { 40 | this.Text = dhb.text; 41 | } 42 | } 43 | this.ResponseHeaders = unityWebRequest.GetResponseHeaders(); 44 | } 45 | 46 | public override string Message 47 | { 48 | get 49 | { 50 | if (msg == null) 51 | { 52 | if(!string.IsNullOrWhiteSpace(Text)) 53 | { 54 | msg = Error + Environment.NewLine + Text; 55 | } 56 | else 57 | { 58 | msg = Error; 59 | } 60 | } 61 | return msg; 62 | } 63 | } 64 | } 65 | } 66 | 67 | #endif -------------------------------------------------------------------------------- /src/UniTask.Analyzer/UniTaskAnalyzer.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable RS2008 2 | 3 | using Microsoft.CodeAnalysis; 4 | using Microsoft.CodeAnalysis.Diagnostics; 5 | using Microsoft.CodeAnalysis.Operations; 6 | using System.Collections.Immutable; 7 | using System.Threading; 8 | 9 | namespace UniTask.Analyzer 10 | { 11 | [DiagnosticAnalyzer(LanguageNames.CSharp)] 12 | public class UniTaskAnalyzer : DiagnosticAnalyzer 13 | { 14 | private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor( 15 | id: "UNITASK001", 16 | title: "UniTaskAnalyzer001: Must pass CancellationToken", 17 | messageFormat: "Must pass CancellationToken", 18 | category: "Usage", 19 | defaultSeverity: DiagnosticSeverity.Error, 20 | isEnabledByDefault: true, 21 | description: "Pass CancellationToken or CancellationToken.None."); 22 | 23 | public override ImmutableArray SupportedDiagnostics { get { return ImmutableArray.Create(Rule); } } 24 | 25 | public override void Initialize(AnalysisContext context) 26 | { 27 | context.ConfigureGeneratedCodeAnalysis(GeneratedCodeAnalysisFlags.None); 28 | context.EnableConcurrentExecution(); 29 | 30 | context.RegisterOperationAction(AnalyzeOperation, OperationKind.Invocation); 31 | } 32 | 33 | private static void AnalyzeOperation(OperationAnalysisContext context) 34 | { 35 | var token = context.Compilation.GetTypeByMetadataName(typeof(CancellationToken).FullName); 36 | if (token == null) return; 37 | 38 | if (context.Operation is IInvocationOperation invocation) 39 | { 40 | foreach (var arg in invocation.Arguments) 41 | { 42 | if (arg.ArgumentKind == ArgumentKind.DefaultValue) 43 | { 44 | if (SymbolEqualityComparer.Default.Equals(arg.Parameter.Type, token)) 45 | { 46 | var diagnostic = Diagnostic.Create(Rule, arg.Syntax.GetLocation()); 47 | context.ReportDiagnostic(diagnostic); 48 | } 49 | } 50 | } 51 | } 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /src/UniTask/Assets/Plugins/UniTask/Runtime/UniTaskExtensions.Shorthand.tt: -------------------------------------------------------------------------------- 1 | <#@ template debug="false" hostspecific="false" language="C#" #> 2 | <#@ assembly name="System.Core" #> 3 | <#@ import namespace="System.Linq" #> 4 | <#@ import namespace="System.Text" #> 5 | <#@ import namespace="System.Collections.Generic" #> 6 | <#@ output extension=".cs" #> 7 | #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 8 | using System.Collections.Generic; 9 | 10 | namespace Cysharp.Threading.Tasks 11 | { 12 | public static partial class UniTaskExtensions 13 | { 14 | // shorthand of WhenAll 15 | 16 | public static UniTask.Awaiter GetAwaiter(this UniTask[] tasks) 17 | { 18 | return UniTask.WhenAll(tasks).GetAwaiter(); 19 | } 20 | 21 | public static UniTask.Awaiter GetAwaiter(this IEnumerable tasks) 22 | { 23 | return UniTask.WhenAll(tasks).GetAwaiter(); 24 | } 25 | 26 | public static UniTask.Awaiter GetAwaiter(this UniTask[] tasks) 27 | { 28 | return UniTask.WhenAll(tasks).GetAwaiter(); 29 | } 30 | 31 | public static UniTask.Awaiter GetAwaiter(this IEnumerable> tasks) 32 | { 33 | return UniTask.WhenAll(tasks).GetAwaiter(); 34 | } 35 | 36 | <# for(var i = 2; i <= 15; i++ ) { 37 | var range = Enumerable.Range(1, i); 38 | var t = string.Join(", ", range.Select(x => "T" + x)); 39 | var args = string.Join(", ", range.Select(x => $"UniTask task{x}")); 40 | var titems = string.Join(", ", range.Select(x => $"tasks.Item{x}")); 41 | #> 42 | public static UniTask<(<#= t #>)>.Awaiter GetAwaiter<<#= t #>>(this (<#= args #>) tasks) 43 | { 44 | return UniTask.WhenAll(<#= titems #>).GetAwaiter(); 45 | } 46 | 47 | <# } #> 48 | 49 | <# for(var i = 2; i <= 15; i++ ) { 50 | var range = Enumerable.Range(1, i); 51 | var args = string.Join(", ", range.Select(x => $"UniTask task{x}")); 52 | var titems = string.Join(", ", range.Select(x => $"tasks.Item{x}")); 53 | #> 54 | 55 | public static UniTask.Awaiter GetAwaiter(this (<#= args #>) tasks) 56 | { 57 | return UniTask.WhenAll(<#= titems #>).GetAwaiter(); 58 | } 59 | 60 | <# } #> 61 | 62 | } 63 | } -------------------------------------------------------------------------------- /src/UniTask/ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0} 37 | m_PreloadedShaders: [] 38 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 39 | type: 0} 40 | m_CustomRenderPipeline: {fileID: 0} 41 | m_TransparencySortMode: 0 42 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 43 | m_DefaultRenderingPath: 1 44 | m_DefaultMobileRenderingPath: 1 45 | m_TierSettings: [] 46 | m_LightmapStripping: 0 47 | m_FogStripping: 0 48 | m_InstancingStripping: 0 49 | m_LightmapKeepPlain: 1 50 | m_LightmapKeepDirCombined: 1 51 | m_LightmapKeepDynamicPlain: 1 52 | m_LightmapKeepDynamicDirCombined: 1 53 | m_LightmapKeepShadowMask: 1 54 | m_LightmapKeepSubtractive: 1 55 | m_FogKeepLinear: 1 56 | m_FogKeepExp: 1 57 | m_FogKeepExp2: 1 58 | m_AlbedoSwatchInfos: [] 59 | m_LightsUseLinearIntensity: 0 60 | m_LightsUseColorTemperature: 0 61 | --------------------------------------------------------------------------------