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

Add FeedbackLoop operator, a deadlock-free way of introducing cycles. #152

Merged
merged 1 commit into from Mar 5, 2019

Conversation

TomasMikula
Copy link
Contributor

The motivation is to provide a safe way to create feedback loops. Deadlock is never the desired behavior, yet they are tricky to avoid when creating cycles manually.

The trick to avoid deadlocks is to never backpressure the feedback loop (and prefer failure when the buffer overflows).

Copy link
Member

@2m 2m left a comment

Choose a reason for hiding this comment

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

LGTM. I like the Fibonacci sequence test-case at the end. Very succinct.

@2m 2m merged commit 65d9e1f into akka:master Mar 5, 2019
@2m 2m added this to the 0.10 milestone Mar 5, 2019
@TomasMikula TomasMikula deleted the feedback branch March 5, 2019 17:34
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.

None yet

2 participants