mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-20 22:50:16 +00:00
d
This commit is contained in:
@@ -137,29 +137,19 @@ namespace Cysharp.Threading.Tasks.CompilerServices
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG || !UNITY_2018_3_OR_NEWER
|
#if DEBUG || !UNITY_2018_3_OR_NEWER
|
||||||
|
// Important for IDE debugger.
|
||||||
object id;
|
object debuggingId;
|
||||||
|
private object ObjectIdForDebugger
|
||||||
// 9. For Debugger Attach
|
|
||||||
public object ObjectIdForDebugger
|
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (debuggingId == null)
|
||||||
{
|
{
|
||||||
id = new object();
|
debuggingId = new object();
|
||||||
}
|
}
|
||||||
return id;
|
return debuggingId;
|
||||||
/*
|
|
||||||
if (promise == null)
|
|
||||||
{
|
|
||||||
promise = AutoResetUniTaskCompletionSource.Create();
|
|
||||||
}
|
|
||||||
return promise;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -294,29 +284,20 @@ namespace Cysharp.Threading.Tasks.CompilerServices
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG || !UNITY_2018_3_OR_NEWER
|
#if DEBUG || !UNITY_2018_3_OR_NEWER
|
||||||
|
// Important for IDE debugger.
|
||||||
object id;
|
object debuggingId;
|
||||||
|
private object ObjectIdForDebugger
|
||||||
// 9. For Debugger Attach
|
|
||||||
public object ObjectIdForDebugger
|
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (debuggingId == null)
|
||||||
{
|
{
|
||||||
id = new object();
|
debuggingId = new object();
|
||||||
}
|
}
|
||||||
return id;
|
return debuggingId;
|
||||||
/*
|
|
||||||
if (promise == null)
|
|
||||||
{
|
|
||||||
promise = AutoResetUniTaskCompletionSource<T>.Create();
|
|
||||||
}
|
|
||||||
return promise;
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -102,22 +102,19 @@ namespace Cysharp.Threading.Tasks.CompilerServices
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG || !UNITY_2018_3_OR_NEWER
|
#if DEBUG || !UNITY_2018_3_OR_NEWER
|
||||||
|
// Important for IDE debugger.
|
||||||
object id;
|
object debuggingId;
|
||||||
|
private object ObjectIdForDebugger
|
||||||
// 9. For Debugger Attach
|
|
||||||
public object ObjectIdForDebugger
|
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (id == null)
|
if (debuggingId == null)
|
||||||
{
|
{
|
||||||
id = new object();
|
debuggingId = new object();
|
||||||
}
|
}
|
||||||
return id;
|
return debuggingId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user