private void CheckForCompletion(Action action) { if (asyncOp.isDone) { action(); } else { NextFrameHelper.Enqueue(() => CheckForCompletion(action)); } }
public override void OnCompleted(Action action) => NextFrameHelper.Enqueue(action);
public override void OnCompleted(Action action) => NextFrameHelper.Enqueue(() => CheckForCompletion(action));