@seanmonstar re: warp. how would I create my own Filter that returns a future? e.g. I have an actor that processes database queries, I want to send it a message that returns a future and the future returns the query result or a database error I'd want to handle as a rejection.
The rejection system is the least designed part of warp at the moment. The constraints on it at the moment are performance (so small, not allocating) and combining rejections in case both sides of an 'or' reject.
-
-
Roger that. The combining of rejections makes sense but clearly adds complexity to its role, for good reason of course. I noticed the bitflags for Reason so it can be combined. I'm interested how that will evolve and be customizable by library consumers for sure.
-
Another consideration is allowing an author to return a Response directly rather than a Rejection, and the behavior of 'or' would be short-circuiting like a logical OR operation.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.