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

feat: add AnyAsyncThrowingSequece, to differentiate from regular one #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AmadeusK525
Copy link

This makes things easier when dealing with infinite sequences (like values from a Combine Publisher)

This makes things easier when dealing with infinite sequences (like
values from a Combine Publisher)
@@ -34,4 +34,9 @@ public extension AsyncSequence {
AnyAsyncSequence(self)
}

/// Create a type erased version of this sequence
/// - Returns: The sequence, wrapped in an `AnyAsyncThrowingSequence`
func eraseToAnyAsyncThrowingSequence() -> AnyAsyncThrowingSequence<Element> where {
Copy link

@robbiehanson robbiehanson Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Complier issue: -> AnyAsyncThrowingSequence<Element> where {

Just remove the where ?

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