A Boolean value that indicates whether indefinite execution is enabled.
- macOS 10.9+
- Xcode 8.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.
Editing the playground automatically stops execution, even when indefinite execution is enabled.
needs to 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 is set to true when
live is set to a non-nil value.