Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
AsyncDolls
TaskCompletionSource
TrySetException
AsyncDolls.TaskCompletionSource.TrySetException C# (CSharp) Method
TaskCompletionSource Class Documentation
显示文件
Open project: danielmarbach/async-dolls
TrySetException()
public
method
Attempts to transition the underlying
Task
into the
TaskStatus.Faulted
state.
public
TrySetException
(
Exception
exception
) :
bool
exception
System.Exception
The exception to bind to this
. May not be
null
.
return
bool
public bool TrySetException(Exception exception) { return _tcs.TrySetException(exception); }
Same methods
TaskCompletionSource::
TrySetException
(
IEnumerable
exceptions
) :
bool
TaskCompletionSource
SetCanceled
SetException
SetResult
TaskCompletionSource
TrySetCanceled
TrySetException
TrySetResult