Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Advances frames until the callback stops the loop, cancellation is requested or a callback fails.

API: engine
Project: Inno.Shell

public System.Threading.Tasks.ValueTask Inno.Shell.PollingShellFrameDriver.RunAsync(System.Func<bool> advanceFrame, System.Threading.CancellationToken cancellationToken)

Parameter advanceFrame: The owner-thread frame callback; false terminates the loop.

Parameter cancellationToken: Cancels before the next frame can execute.

Completion when the callback stops; cancellation and callback failures propagate to the owner.

Exception T:System.ArgumentNullException: The frame callback is null.

Exception T:System.OperationCanceledException: Cancellation was requested before a frame.