A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cysharp.github.io/UniTask/api/Cysharp.Threading.Tasks.UniTaskCompletionSourceCore-1.html below:

UniTaskCompletionSourceCore<TResult> Struct Namespace: Cysharp.Threading.Tasks Assembly: cs.temp.dll.dll
public struct UniTaskCompletionSourceCore<TResult>
Type Parameters
TResult
Members Properties Name Description Version

Gets the operation version.

Methods Properties Version

Gets the operation version.

public readonly short Version { get; }
Property Value
System.Int16
Methods GetResult(Int16)

Gets the result of the operation.

public TResult GetResult(short token)
Parameters
token System.Int16

Opaque value that was provided to the UniTask's constructor.

Returns
TResult
GetStatus(Int16)

Gets the status of the operation.

public UniTaskStatus GetStatus(short token)
Parameters
token System.Int16

Opaque value that was provided to the UniTask's constructor.

Returns
UniTaskStatus
OnCompleted(Action<Object>, Object, Int16)

Schedules the continuation action for this operation.

public void OnCompleted(Action<object> continuation, object state, short token)
Parameters
continuation System.Action<System.Object>

The continuation to invoke when the operation has completed.

state System.Object

The state object to pass to continuation when it's invoked.

token System.Int16

Opaque value that was provided to the UniTask's constructor.

Reset() TrySetCanceled(CancellationToken)
public bool TrySetCanceled(CancellationToken cancellationToken = null)
Parameters
cancellationToken CancellationToken
Returns
System.Boolean
TrySetException(Exception)

Completes with an error.

public bool TrySetException(Exception error)
Parameters
error System.Exception

The exception.

Returns
System.Boolean
TrySetResult(TResult)

Completes with a successful result.

public bool TrySetResult(TResult result)
Parameters
result TResult

The result.

Returns
System.Boolean
UnsafeGetStatus()

Gets the status of the operation without token validation.

public UniTaskStatus UnsafeGetStatus()
Returns
UniTaskStatus

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4