proxygen
|
Namespaces | |
test | |
Classes | |
class | AsyncioExecutor |
class | GILAwareManualExecutor |
Functions | |
folly::fibers::FiberManager * | getFiberManager (const folly::fibers::FiberManager::Options &opts) |
template<typename T > | |
void | bridgeFibers (folly::Function< T()> &&function, folly::Function< void(folly::Try< T > &&, PyObject *)> callback, PyObject *userData) |
folly::Executor * | getExecutor () |
template<typename T > | |
void | bridgeFuture (folly::Executor *executor, folly::Future< T > &&futureFrom, folly::Function< void(folly::Try< T > &&, PyObject *)> callback, PyObject *userData) |
template<typename T > | |
void | bridgeFuture (folly::Future< T > &&futureFrom, folly::Function< void(folly::Try< T > &&, PyObject *)> callback, PyObject *userData) |
void folly::python::bridgeFibers | ( | folly::Function< T()> && | function, |
folly::Function< void(folly::Try< T > &&, PyObject *)> | callback, | ||
PyObject * | userData | ||
) |
Helper function with similar callback/userData parameters as bridgeFuture. This can be convenient in code that calls both (notably our tests), but most callsites should directly use getFiberManager().
Definition at line 39 of file fibers.h.
References getFiberManager(), folly::gen::guard(), folly::makeGuard(), folly::makeTryWith(), and folly::gen::move.
void folly::python::bridgeFuture | ( | folly::Executor * | executor, |
folly::Future< T > && | futureFrom, | ||
folly::Function< void(folly::Try< T > &&, PyObject *)> | callback, | ||
PyObject * | userData | ||
) |
Definition at line 38 of file futures.h.
References folly::gen::guard(), folly::makeGuard(), and folly::gen::move.
Referenced by bridgeFuture().
void folly::python::bridgeFuture | ( | folly::Future< T > && | futureFrom, |
folly::Function< void(folly::Try< T > &&, PyObject *)> | callback, | ||
PyObject * | userData | ||
) |
Definition at line 59 of file futures.h.
References bridgeFuture(), getExecutor(), and folly::gen::move.
|
inline |
Definition at line 32 of file futures.h.
Referenced by bridgeFuture(), folly::Future< folly::folly::Unit >::then(), and folly::Future< folly::folly::Unit >::thenMultiWithExecutor().
folly::fibers::FiberManager * folly::python::getFiberManager | ( | const folly::fibers::FiberManager::Options & | opts | ) |
Definition at line 24 of file fibers.cpp.
References folly::call_once(), flag, and folly::fibers::runInMainContext().
Referenced by bridgeFibers().