A Boolean value that indicates whether indefinite execution is enabled.
- macOS 10.12+
- Xcode 8.0+
- Swift Playgrounds 2.0+
- Playground Support
By default, all top-level code is executed, and then execution is terminated. When working with asynchronous code, enable indefinite execution to allow execution to continue after the end of the playground’s top-level code is reached. This, in turn, gives threads and callbacks time to execute.
With a traditional live view, editing the playground automatically stops execution, even when indefinite execution is enabled. When using the always-on live view, execution continues whether or not indefinite execution is enabled.
true to continue execution after the end of top-level code. Set it to
false to stop execution at that point.
The default value is
false. It's set to true when
live is set to a non-