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

[actor shutdown] Add a context macro to thread_executor #72

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

JohnMurray
Copy link
Owner

Summary

Introduces a new context! macro in thread_executor that just makes constructing context objects less visually intrusive (8 lines per instantiation!). Code is much easier to read now.

Motivation

Part of #29.

The changes for actor shutdown will introduce more instances in which a context object will be created from a system context. It made sense to invest in a macro here to save some typing. Took a few iterations to get this working right (so many TIL moments).

Test Plan

If it compiles it's good. This change should be functionally equivalent to what existed before.

@JohnMurray JohnMurray self-assigned this Jul 2, 2023
@JohnMurray JohnMurray added this to the 0.3.0 milestone Jul 2, 2023
@JohnMurray JohnMurray merged commit 5aa5573 into main Jul 2, 2023
4 checks passed
@JohnMurray JohnMurray deleted the shutdown/context-macro branch July 2, 2023 18:58
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

1 participant