Table of Contents

ReusableCoroutine Constructor

ReusableCoroutine(Func<bool>, Func<ReusableCoroutine, Exception, bool>?, Action?, Action?, Func<ReusableCoroutine, bool>?, object?)

public ReusableCoroutine(Func<bool> onNext, Func<ReusableCoroutine, Exception, bool>? onError = null, Action? onComplete = null, Action? onDispose = null, Func<ReusableCoroutine, bool>? onReset = null, object? timing = null)

Parameters

onNext Func<bool>
onError Func<ReusableCoroutine, Exception, bool>

args: (this, error) -> bool markCompleted

onComplete Action
onDispose Action
onReset Func<ReusableCoroutine, bool>

args: (this) -> bool allowReset

timing object

WaitForEndOfFrame or other.