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

Improve strands BBE #8425

Open
Nadeeshan96 opened this issue Dec 11, 2023 · 2 comments
Open

Improve strands BBE #8425

Nadeeshan96 opened this issue Dec 11, 2023 · 2 comments
Assignees
Labels
Area/BBE Issues related to BBEs. Category/Content All written content related issues (Technical content, english language etc) Kind/Runtime Type/Improvement Improvements required on the website.

Comments

@Nadeeshan96
Copy link
Contributor

Description

A brief description of the improvement.

Improve strands BBE: https://ballerina.io/learn/by-example/strands/

Need to state

Unless we explicitly wait for the workers or async functions, there is no guarantee that the Ballerina program will wait till they have completed the execution. So there the only log which surely gets printed is io:println("In function worker");. Others may not get printed if the Ballerina program exits before those statements are executed. If we add wait we can see the other logs also.

Need to remove

An annotation can be used to make a strand run on a separate thread.

because that is deprected.

Related website/documentation area

Add/Uncomment the relevant area label out of the following.

Area/BBEs

Describe the problem(s)

A detailed description of the purpose of this improvement.

Describe your solution(s)

A detailed description of how this improvement will solve the problem described above.

Related issue(s) (optional)

Any related issues such as sub tasks and issues reported in other repositories (e.g., component repositories), similar problems, etc.

Suggested label(s) (optional)

Optional comma-separated list of suggested labels. Non committers can’t assign labels to issues, and thereby, this will help issue creators who are not a committer to suggest possible labels.

Suggested assignee(s) (optional)

Optional comma-separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, and thereby, this will help issue creators who are not a committer to suggest possible assignees.

@Nadeeshan96 Nadeeshan96 added Type/Improvement Improvements required on the website. Area/BBE Issues related to BBEs. labels Dec 11, 2023
@anupama-pathirage
Copy link
Contributor

@warunalakshitha / @HindujaB, can we prioritize this and complete it?

@anupama-pathirage anupama-pathirage added the Category/Content All written content related issues (Technical content, english language etc) label Apr 2, 2024
@gabilang
Copy link
Contributor

gabilang commented Apr 5, 2024

Addressing with the PR ballerina-platform/ballerina-distribution#5288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/BBE Issues related to BBEs. Category/Content All written content related issues (Technical content, english language etc) Kind/Runtime Type/Improvement Improvements required on the website.
Projects
Status: Done
Development

No branches or pull requests

5 participants