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 response handling for asynchronous gen and erpc requests #5792

Conversation

rickard-green
Copy link
Contributor

@rickard-green rickard-green commented Mar 16, 2022

receive_response(), wait_response(), and check_response() in gen_server, gen_statem, gen_event, and erpc can now take a collection of request identifiers as argument and handle any responses corresponding to a request identifier in the collection.


Edit: API changed 19/3-2022 due to OTP Technical Board decision

@rickard-green rickard-green added team:VM Assigned to OTP team VM team:PS Assigned to OTP team PS enhancement labels Mar 16, 2022
@rickard-green rickard-green added this to the OTP-25.0 milestone Mar 16, 2022
@rickard-green rickard-green self-assigned this Mar 16, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 16, 2022

CT Test Results

       3 files     137 suites   1h 25m 34s ⏱️
2 777 tests 2 590 ✔️ 187 💤 0
3 229 runs  3 007 ✔️ 222 💤 0

Results for commit cb67a70.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@rickard-green rickard-green force-pushed the rickard/async-response-improvement/OTP-17784 branch from dcc2365 to 18176e9 Compare March 16, 2022 14:49
@rickard-green rickard-green added testing currently being tested, tag is used by OTP internal CI and removed testing currently being tested, tag is used by OTP internal CI labels Mar 16, 2022
@rickard-green rickard-green force-pushed the rickard/async-response-improvement/OTP-17784 branch from 18176e9 to e9803e1 Compare March 16, 2022 16:14
@rickard-green rickard-green added the testing currently being tested, tag is used by OTP internal CI label Mar 16, 2022
@rickard-green rickard-green force-pushed the rickard/async-response-improvement/OTP-17784 branch 5 times, most recently from 11b7313 to 9487157 Compare March 20, 2022 02:21
receive_response/3, wait_response/3, and check_response/3 in 'gen_server',
'gen_statem', and 'gen_event' can now take a collection of request
identifiers as argument and handle any responses corresponding a request
identifier in the collection.
receive_response/3, wait_response/3, and check_response/3 in 'erpc'
can now take a collection of request identifiers as argument and handle
any responses corresponding a request identifier in the collection.
@rickard-green rickard-green force-pushed the rickard/async-response-improvement/OTP-17784 branch from 9487157 to cb67a70 Compare March 20, 2022 17:10
@rickard-green rickard-green merged commit bdd6b69 into erlang:master Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement team:PS Assigned to OTP team PS team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant