-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[actor shutdown] Add a context macro to thread_executor (#72)
### 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.
- Loading branch information
1 parent
ffe59f3
commit 5aa5573
Showing
1 changed file
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters