TaskOrResult<T> Struct
Namespace: Stride.Shaders.Compiler
Assembly: Stride.Shaders.dll
public struct TaskOrResult<T>
Type Parameters
|
Improve this Doc
View Source
Constructors
TaskOrResult(T)
public TaskOrResult(T result)
Parameters
Type |
Name |
Description |
T |
result |
|
TaskOrResult(Task<T>)
public TaskOrResult(Task<T> task)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.Task<T> |
task |
|
|
Improve this Doc
View Source
Fields
Result
Field Value
Task
public readonly Task<T> Task
Field Value
Type |
Description |
System.Threading.Tasks.Task<T> |
|
|
Improve this Doc
View Source
Methods
AwaitResult()
public Task<T> AwaitResult()
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
GetCurrentResult()
public T GetCurrentResult()
Returns
WaitForResult()
Returns
|
Improve this Doc
View Source
Operators
Implicit(T to TaskOrResult<T>)
public static implicit operator TaskOrResult<T>(T result)
Parameters
Type |
Name |
Description |
T |
result |
|
Returns
Implicit(Task<T> to TaskOrResult<T>)
public static implicit operator TaskOrResult<T>(Task<T> task)
Parameters
Type |
Name |
Description |
System.Threading.Tasks.Task<T> |
task |
|
Returns
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Extension Methods