public struct UniTaskCompletionSourceCore<TResult>
Type Parameters
TResult
Gets the operation version.
Methods Properties VersionGets the operation version.
public readonly short Version { get; }
Property Value
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.
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.
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.
public bool TrySetCanceled(CancellationToken cancellationToken = null)
Parameters
cancellationToken
CancellationToken
Completes with an error.
public bool TrySetException(Exception error)
Parameters
error
System.Exception
The exception.
Completes with a successful result.
public bool TrySetResult(TResult result)
Parameters
result
TResult
The result.
Gets the status of the operation without token validation.
public UniTaskStatus UnsafeGetStatus()
Returns
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