I have a design similar to the following
handleWith {
mr: MyRequest =>
(myactor ? mr).mapTo[Either[BadRequest, GoodResponse]]
}
Based on the results of Either, I would like to fill out either 200 based on the Right answer, and a kind of 4XX based on the left. I'm not quite sure how to pull the future into a match to do this, though.
source
share