Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobsapps/533b031c8d92c5e7f952dc586402806f to your computer and use it in GitHub Desktop.
Save jacobsapps/533b031c8d92c5e7f952dc586402806f to your computer and use it in GitHub Desktop.
// 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