--
You received this message because you are subscribed to the Google Groups "Unfiltered" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unfiltered-sca...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Aug 22, 2014 6:58 AM, "Erlend Hamnaberg" <nga...@gmail.com> wrote:
>
> yes, but only the synchronous version.
Since an async intent's return type is unit it's up to the request responder to complete the request which doesn't fit well with a directive s type signature. Pull requests are welcome!
async type signature could also be expressed as Request => Future[Response], which would be suitable for directives if they were rewritten to work with any monad.I did a proof of concept a while back https://github.com/teigen/unfiltered/commit/69f070116d3fc4c5aa97c8a4f28b81e5dd29b3e1which demonstrates this.Not really sure I like it in its current form, but atleast it proves that its possible