Oh thanks

On Wed, Jul 6, 2016 at 3:33 PM, <matheusl...@sagaranatech.com> wrote:

>
> http://doc.akka.io/docs/akka/2.4.7/scala/http/routing-dsl/directives/future-directives/onComplete.html#oncomplete
>
>
> Em quarta-feira, 6 de julho de 2016 16:23:18 UTC-3, Maatary Okouya
> escreveu:
>>
>>
>> Hi,
>>
>> instead of
>>
>>
>>    1. val route =
>>    2. path("hello") {
>>    3. get {
>>    4. complete(HttpEntity(ContentTypes.`text/html(UTF-8)`, "<h1>Say
>>    hello to akka-http</h1>"))
>>    5. }
>>    6. }
>>
>> I would like a directive to which i can pass a future.
>>
>> I need to call another service compute some value and then return the
>> result as a future that i can then pass to the directive such as complete
>> here.
>>
>>
>> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/lWMsRn6Es3s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to