Skip to content
New issue

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

Default methods that return async sources should not throw #2288

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

#2168 and #2235 added default implementations that throw an exception.
However, those method signatures return an async source.

Modifications:

  • Return a failed source with an exception instead of throwing;

Result:

Default methods follow async contract.

Motivation:

apple#2168 and apple#2235 added default implementations that throw an exception.
However, those method signatures return an async source.

Modifications:

- Return a `failed` source with an exception instead of throwing;

Result:

Default methods follow async contract.
@idelpivnitskiy idelpivnitskiy self-assigned this Jul 22, 2022
@idelpivnitskiy idelpivnitskiy merged commit 9f02857 into apple:main Jul 22, 2022
@idelpivnitskiy idelpivnitskiy deleted the async branch July 22, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants