Commit 46b709bc authored by Jason Fried's avatar Jason Fried Committed by Facebook Github Bot

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
parent b422f6b5
...@@ -6,7 +6,7 @@ cdef extern from "folly/ExceptionWrapper.h" namespace "folly": ...@@ -6,7 +6,7 @@ cdef extern from "folly/ExceptionWrapper.h" namespace "folly":
cdef extern from "folly/Try.h" namespace "folly" nogil: cdef extern from "folly/Try.h" namespace "folly" nogil:
cdef cppclass cFollyTry "folly::Try"[T]: cdef cppclass cFollyTry "folly::Try"[T]:
T value() except+ T value()
cbool hasException[T]() cbool hasException[T]()
cbool hasException() cbool hasException()
cFollyExceptionWrapper exception() cFollyExceptionWrapper exception()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment