From: Jason Fried Date: Mon, 10 Apr 2017 18:05:00 +0000 (-0700) Subject: Client RequestChannels and folly/python/futures.h X-Git-Tag: v2017.04.17.00~46 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=46b709bc7780303b5fefd4bbbaf67b9f268d4865;p=folly.git Client RequestChannels and folly/python/futures.h Summary: Use RequestChannel to construct Thrift Clients. use folly/python/futures.h to marry up thrift client rpc futures to asyncio futures. No gil exchanges py3 clients are async context managers now. Reviewed By: ambv, yfeldblum Differential Revision: D4639677 fbshipit-source-id: 6b400747507446882d3cfcb1cf7e85c3daa07a2e --- diff --git a/folly/python/__init__.pxd b/folly/python/__init__.pxd index b5deda23..b45054c8 100644 --- a/folly/python/__init__.pxd +++ b/folly/python/__init__.pxd @@ -6,7 +6,7 @@ cdef extern from "folly/ExceptionWrapper.h" namespace "folly": cdef extern from "folly/Try.h" namespace "folly" nogil: cdef cppclass cFollyTry "folly::Try"[T]: - T value() except+ + T value() cbool hasException[T]() cbool hasException() cFollyExceptionWrapper exception()