pull/73/head
neuecc 2020-05-06 02:50:30 +09:00
parent 6c1b590fd8
commit 4e9d268d1c
2 changed files with 19 additions and 41 deletions

View File

@ -137,29 +137,19 @@ namespace Cysharp.Threading.Tasks.CompilerServices
}
#if DEBUG || !UNITY_2018_3_OR_NEWER
object id;
// 9. For Debugger Attach
public object ObjectIdForDebugger
// Important for IDE debugger.
object debuggingId;
private object ObjectIdForDebugger
{
get
{
if (id == null)
if (debuggingId == null)
{
id = new object();
debuggingId = new object();
}
return id;
/*
if (promise == null)
{
promise = AutoResetUniTaskCompletionSource.Create();
}
return promise;
*/
return debuggingId;
}
}
#endif
}
@ -294,29 +284,20 @@ namespace Cysharp.Threading.Tasks.CompilerServices
}
#if DEBUG || !UNITY_2018_3_OR_NEWER
object id;
// 9. For Debugger Attach
public object ObjectIdForDebugger
// Important for IDE debugger.
object debuggingId;
private object ObjectIdForDebugger
{
get
{
if (id == null)
if (debuggingId == null)
{
id = new object();
debuggingId = new object();
}
return id;
/*
if (promise == null)
{
promise = AutoResetUniTaskCompletionSource<T>.Create();
}
return promise;
*/
return debuggingId;
}
}
#endif
}
}

View File

@ -102,22 +102,19 @@ namespace Cysharp.Threading.Tasks.CompilerServices
}
#if DEBUG || !UNITY_2018_3_OR_NEWER
object id;
// 9. For Debugger Attach
public object ObjectIdForDebugger
// Important for IDE debugger.
object debuggingId;
private object ObjectIdForDebugger
{
get
{
if (id == null)
if (debuggingId == null)
{
id = new object();
debuggingId = new object();
}
return id;
return debuggingId;
}
}
#endif
}
}