[2.3.3 Scala] play.api.libs.oauth.Oauth methods not returning Futures

46 views
Skip to first unread message

Johan Andren

unread,
Sep 2, 2014, 10:33:22 AM9/2/14
to play-fr...@googlegroups.com
Just noticed when trying to interact with twitter oauth, the methods on Oauth (retrieveRequestTokenretrieveAccessToken
returns Either[OAuthException, RequestToken] and not Future[RequestToken] even though they require a http call to
the oauth server, so I take it they are blocking? (why?)

Will Sargent

unread,
Sep 2, 2014, 6:30:44 PM9/2/14
to play-fr...@googlegroups.com
You're correct, it should be using a Future, just from an API perspective.  I'll open up a ticket.

Under the hood, Play is using Signpost, which I suspect (but have not verified recently) is blocking in any case:


Will Sargent
Consultant, Professional Services
Typesafe, the company behind Play Framework, Akka and Scala


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages