Class StreamingThreadJobItem<TResult>
public class StreamingThreadJobItem<TResult> : ThreadJobItem
Type Parameters
TResult
- Inheritance
-
StreamingThreadJobItem<TResult>
- Inherited Members
-
Constructors
StreamingThreadJobItem(ThreadJob<TResult>, UnityAction<TResult>, UnityAction, UnityAction<Exception>)
public StreamingThreadJobItem(ThreadJob<TResult> job, UnityAction<TResult> onProgress, UnityAction onComplete, UnityAction<Exception> onError)
Parameters
job ThreadJob<TResult>
onProgress UnityAction<TResult>
onComplete UnityAction
onError UnityAction<Exception>
Properties
IsAsync
public override bool IsAsync { get; }
Property Value
- bool
IsStreaming
public override bool IsStreaming { get; }
Property Value
- bool
OnComplete
public override UnityAction OnComplete { get; }
Property Value
- UnityAction
OnProgress
public override UnityAction<object> OnProgress { get; }
Property Value
- UnityAction<object>
OnResult
public override UnityAction<object> OnResult { get; }
Property Value
- UnityAction<object>
Methods
Execute()
public override object Execute()
Returns
- object
ExecuteAsync()
public override Task<object> ExecuteAsync()
Returns
- Task<object>
ExecuteStreaming(Action<object>, Action)
public override void ExecuteStreaming(Action<object> onProgress, Action onComplete)
Parameters
onProgress Action<object>
onComplete Action
ExecuteStreamingAsync(Action<object>, Action)
public override Task ExecuteStreamingAsync(Action<object> onProgress, Action onComplete)
Parameters
onProgress Action<object>
onComplete Action
Returns
- Task