Contents

finishExecution()

Terminates execution of the current playground page.

Declaration

final func finishExecution() -> Never
func finishExecution() -> Never

Discussion

This function immediately terminates any code running in the playground. Call this function when you've set needsIndefiniteExecution to true to indicate that the indefinite period of code execution has ended.

See Also

Configuring Execution