Contents

PlaygroundPage.ExecutionMode

The available speeds for executing the code on a playground page.

Declaration

enum PlaygroundPage.ExecutionMode

Overview

The PlaygroundPage.ExecutionMode.run, PlaygroundPage.ExecutionMode.runFaster, and PlaygroundPage.ExecutionMode.runFastest modes all execute code immediately. The PlaygroundPage.ExecutionMode.step and PlaygroundPage.ExecutionMode.stepSlowly modes execute code statement by statement, highlighting each statement on the page as it's executed.

For faster execution, explicitly support the PlaygroundPage.ExecutionMode.runFaster and PlaygroundPage.ExecutionMode.runFastest modes in your live view code. These modes signal to you that the learner wants the live view to show progress faster than the normal speed. These execution options aren't displayed to the learner unless you opt in by adding the MaximumSupportedExecutionSpeed key to a page's manifest property list. Set the key to Faster or Fastest, depending on how many speeds your live view supports.

Topics

Controlling Execution Speed

Stepping Through Code

Comparing Modes

See Also

Configuring Execution