Skip to content

Instantly share code, notes, and snippets.

@JadenGeller
Last active May 30, 2024 08:46
Show Gist options
  • Save JadenGeller/a16e2d6d1c28461109f07751a67e81f3 to your computer and use it in GitHub Desktop.
Save JadenGeller/a16e2d6d1c28461109f07751a67e81f3 to your computer and use it in GitHub Desktop.
extension Task where Success == Never, Failure == Never {
static let perpetual = Task {
await withCheckedContinuation { (_: CheckedContinuation<Void, Never>) in }
preconditionFailure()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment