-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add monadic error passing to protocol engine (#16788)
Let's make an intermediate layer of command execution, inside the command domain so we don't have to move a bunch of types, that calls execution layer functions and returns a new Maybe class that has nice monadic chaining calls like a JS promise or some other burrito-style implementations. As an example, let's use it for overpressure errors in PrepareToAspirate. ## reviews - does this seem worth it? in your mind's eye, imagine doing this for a new `gantry_common.move_to()` that wraps `gantry_mover.move_to()` and returns a stall defined error. ## testing - none, this is a refactor that passes tests with few changes Closes EXEC-830
- Loading branch information
Showing
4 changed files
with
326 additions
and
46 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
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
Oops, something went wrong.