Table of Contents

Method ToCoroutine

Namespace
Velvet
Assembly
Velvet.Docs.dll

ToCoroutine(Func<VelvetTask>)

public static IEnumerator ToCoroutine(Func<VelvetTask> taskFactory)

Parameters

taskFactory Func<VelvetTask>

Returns

IEnumerator

ToCoroutine(VelvetTask, Action<Exception>?)

public static IEnumerator ToCoroutine(this VelvetTask task, Action<Exception>? exceptionHandler = null)

Parameters

task VelvetTask
exceptionHandler Action<Exception>

Returns

IEnumerator

ToCoroutine<T>(VelvetTask<T>, Action<T>?, Action<Exception>?)

public static IEnumerator ToCoroutine<T>(this VelvetTask<T> task, Action<T>? resultHandler = null, Action<Exception>? exceptionHandler = null)

Parameters

task VelvetTask<T>
resultHandler Action<T>
exceptionHandler Action<Exception>

Returns

IEnumerator

Type Parameters

T