We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now it supports only functions that are throwing errors. What about supporting function without try
try
The text was updated successfully, but these errors were encountered:
While the body closure () async throws -> T is throwing, it does support a closure that is not throwing like so;
() async throws -> T
let val = try await withThrowingTimeout(seconds: 2.0) { await perform() }
withThrowingTimeout always throws because TimeoutError is always thrown when the deadline expires.
withThrowingTimeout
TimeoutError
Sorry, something went wrong.
No branches or pull requests
Now it supports only functions that are throwing errors.
What about supporting function without
try
The text was updated successfully, but these errors were encountered: