folly::Future integration with Python
authorAndrii Grynenko <andrii@fb.com>
Wed, 4 May 2016 21:32:54 +0000 (14:32 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Wed, 4 May 2016 21:35:24 +0000 (14:35 -0700)
commita6fd9a69e7814d75195bbbd2a699ed7a6c66ec38
tree807847871ea7ef1185f14dd7ceb4c4e7e9048658
parent9a47ba11a7702f5924b9de0865adae8c09ce188c
folly::Future integration with Python

Summary:
This diff implements two functions which can be used to bridge C++ asynchronous APIs with Python.
1. getExecutor(event_loop) allows extracting a folly::Executor-compatible object from Python event_loop.
2. wrapFuture wraps any folly::Future object in a Python Future object.

Reviewed By: ambv

Differential Revision: D2878731

fb-gh-sync-id: 83628b6b24d6039999f88c5de441e41064b2417e
fbshipit-source-id: 83628b6b24d6039999f88c5de441e41064b2417e
folly/io/async/NotificationQueue.h