Client RequestChannels and folly/python/futures.h
authorJason Fried <fried@fb.com>
Mon, 10 Apr 2017 18:05:00 +0000 (11:05 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 10 Apr 2017 18:05:44 +0000 (11:05 -0700)
commit46b709bc7780303b5fefd4bbbaf67b9f268d4865
treeaa8b7b4c523936e2b4ca96f89aa7086cb50ab972
parentb422f6b54599ddbde6f5f596ec2fbc2171816301
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
folly/python/__init__.pxd