Adapt invocations to new parameter type

pull/428/head
krisrok 2022-12-20 13:49:07 +01:00
parent b4eba9ad3a
commit 2492ea60c3
1 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ namespace Cysharp.Threading.Tasks
} }
else else
{ {
this.error = new ExceptionHolder(ExceptionDispatchInfo.Capture(error)); this.error = new ExceptionHolder(error);
} }
if (continuation != null || Interlocked.CompareExchange(ref this.continuation, UniTaskCompletionSourceCoreShared.s_sentinel, null) != null) if (continuation != null || Interlocked.CompareExchange(ref this.continuation, UniTaskCompletionSourceCoreShared.s_sentinel, null) != null)
@ -635,7 +635,7 @@ namespace Cysharp.Threading.Tasks
if (UnsafeGetStatus() != UniTaskStatus.Pending) return false; if (UnsafeGetStatus() != UniTaskStatus.Pending) return false;
this.exception = new ExceptionHolder(ExceptionDispatchInfo.Capture(exception)); this.exception = new ExceptionHolder(exception);
return TrySignalCompletion(UniTaskStatus.Faulted); return TrySignalCompletion(UniTaskStatus.Faulted);
} }
@ -820,7 +820,7 @@ namespace Cysharp.Threading.Tasks
if (UnsafeGetStatus() != UniTaskStatus.Pending) return false; if (UnsafeGetStatus() != UniTaskStatus.Pending) return false;
this.exception = new ExceptionHolder(ExceptionDispatchInfo.Capture(exception)); this.exception = new ExceptionHolder(exception);
return TrySignalCompletion(UniTaskStatus.Faulted); return TrySignalCompletion(UniTaskStatus.Faulted);
} }