Created
October 22, 2025 12:29
-
-
Save jacobsapps/3ee44336df713c4a390e498a7d37f65c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let thread = Thread { | |
| print("NSThread starting...") | |
| Thread.exit() // exit thread internally | |
| print("Will never be printed") | |
| } | |
| thread.start() | |
| thread.cancel() // cancel thread externally |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment