Created
July 8, 2025 11:18
-
-
Save jacobsapps/533b031c8d92c5e7f952dc586402806f 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
// Error: Capture of 'then' with non-sendable type | |
// '() -> Void' in a `@Sendable` closure | |
func escapingClosure(_ then: @escaping () -> Void) { | |
Task { | |
then() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment