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

Catch errors in Deferred #1083

Merged
merged 3 commits into from
Aug 24, 2023
Merged

Conversation

custommonkey
Copy link
Contributor

Attempt to fix #986

ATM onError calls dispatcher.unsafeRunSync(Async[F].raiseError(t)) however in this case unsafeRunSync will throw the raised exception.

I've added a Deferred instance to which can hold the exception. The queue can then be terminated using a None. The Deferred value is concatenated onto the end of the stream, once this terminates we can then check for any errors and raise them in the Stream.

@semenodm semenodm merged commit bd7fc38 into laserdisc-io:main Aug 24, 2023
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.

Dynamodb StreamScan hangs forever if a client error happens
2 participants