API reference
API reference
Select your platform
No SDKs available
No versions available

OVRTaskBuilder Struct

The AsyncMethodBuilder for OVRTask<TResult>.
Do not use this type directly. It is used by the compiler to allow OVRTask<TResult> to be used as a task-like object, that is, you can await on it from an awaitable function.

Fields

_pooledStateMachine : IPooledStateMachine
Signature
IPooledStateMachine OVRTaskBuilder< T >._pooledStateMachine
_task : OVRTask?< T >
Signature
OVRTask<T>? OVRTaskBuilder< T >._task

Properties

Task : OVRTask< T >
[Get]
Signature
OVRTask<T> OVRTaskBuilder< T >.Task

Methods

AwaitOnCompleted< TAwaiter, TStateMachine > ( awaiter , stateMachine )
Signature
void OVRTaskBuilder< T >.AwaitOnCompleted< TAwaiter, TStateMachine >(ref TAwaiter awaiter, ref TStateMachine stateMachine)
Parameters
awaiter: ref TAwaiter
stateMachine: ref TStateMachine
Returns
void
AwaitUnsafeOnCompleted< TAwaiter, TStateMachine > ( awaiter , stateMachine )
Signature
void OVRTaskBuilder< T >.AwaitUnsafeOnCompleted< TAwaiter, TStateMachine >(ref TAwaiter awaiter, ref TStateMachine stateMachine)
Parameters
awaiter: ref TAwaiter
stateMachine: ref TStateMachine
Returns
void
GetPooledStateMachine< TStateMachine > ()
Signature
IPooledStateMachine OVRTaskBuilder< T >.GetPooledStateMachine< TStateMachine >()
SetException ( exception )
Signature
void OVRTaskBuilder< T >.SetException(Exception exception)
Parameters
exception: Exception
Returns
void
SetResult ( result )
Signature
void OVRTaskBuilder< T >.SetResult(T result)
Parameters
result: T
Returns
void
SetStateMachine ( stateMachine )
Signature
void OVRTaskBuilder< T >.SetStateMachine(IAsyncStateMachine stateMachine)
Parameters
stateMachine: IAsyncStateMachine
Returns
void
Start< TStateMachine > ( stateMachine )
Signature
void OVRTaskBuilder< T >.Start< TStateMachine >(ref TStateMachine stateMachine)
Parameters
stateMachine: ref TStateMachine
Returns
void

Static Methods

Create ()
Signature
static OVRTaskBuilder< T > OVRTaskBuilder< T >.Create()
Returns
OVRTaskBuilder< T >

Inner Interface

IPooledStateMachine Interface

Extends System.IDisposable

Properties

MoveNext : Action
[Get]
Signature
Action OVRTaskBuilder< T >.IPooledStateMachine.MoveNext
Task : OVRTask?< T >
[Get][Set]
Signature
OVRTask<T>? OVRTaskBuilder< T >.IPooledStateMachine.Task

Inner Class

PooledStateMachine Class

Implements OVRTaskBuilder< T >.IPooledStateMachine, OVRObjectPool.IPoolObject

Constructors

PooledStateMachine ()
Signature
OVRTaskBuilder< T >.PooledStateMachine< TStateMachine >.PooledStateMachine()

Fields

StateMachine : TStateMachine
Signature
TStateMachine OVRTaskBuilder< T >.PooledStateMachine< TStateMachine >.StateMachine

Properties

MoveNext : Action
[Get]
Signature
Action OVRTaskBuilder< T >.PooledStateMachine< TStateMachine >.MoveNext
Task : OVRTask?< T >
[Get][Set]
Signature
OVRTask<T>? OVRTaskBuilder< T >.PooledStateMachine< TStateMachine >.Task

Methods

Dispose ()
Signature
void OVRTaskBuilder< T >.PooledStateMachine< TStateMachine >.Dispose()
Returns
void

Static Methods

Get ()
Signature
static PooledStateMachine< TStateMachine > OVRTaskBuilder< T >.PooledStateMachine< TStateMachine >.Get()
Returns
PooledStateMachine< TStateMachine >