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
[2201.9.x] Add conditional-send
bbe
#5292
[2201.9.x] Add conditional-send
bbe
#5292
Conversation
4d3fc18
to
a814713
Compare
a14cc34
to
95b2616
Compare
Co-authored-by: lochana-chathura <39232462+lochana-chathura@users.noreply.github.com>
return d; | ||
} | ||
|
||
int|error:NoMessage w2Result = wait w2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move closer to the relevant workers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not possible because the workers have to be defined first
// The send action is used in two instances within worker `w3`. | ||
// Therefore, an alternate receive action can be used to receive them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear enough IMO, to relate to conditional send.
@@ -0,0 +1,7 @@ | |||
# Conditional send | |||
|
|||
The send action in workers can be used within a conditional context, allowing for more flexible and dynamic inter-worker communication based on specific conditions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The send action in workers can be used within a conditional context, allowing for more flexible and dynamic inter-worker communication based on specific conditions. | |
The send action in workers can be used in a conditional context, allowing for more flexible and dynamic inter-worker communication based on specific conditions. |
Include something about the receive side too, since it becomes aware that there may not be a message.
@poorna2152 I used the same BBE samples for the release note with ballerina-platform/ballerina-dev-website#8902. Based on ballerina-platform/ballerina-dev-website#8902 (comment), I was able to simplify all the samples. There were a few other suggestions as well. You can find the diff here. https://github.com/ballerina-platform/ballerina-dev-website/pull/8902/files/6767ee69fe7b536f92f3ff57f74073c72f83e21e..51494121a754545cbdbacafbd9f9088131dfdc49 Hope we can apply them here. |
26f0bd7
to
21c93d6
Compare
Quality Gate passedIssues Measures |
This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the |
conditional-send
bbeconditional-send
bbe
Purpose
$subject
Part of ballerina-platform/ballerina-dev-website#8856