Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / namespace_from_package / gen-py3 / module / clients_wrapper.cpp
blobb848de06bfc04f88cd29afa99f4e1684ed5a700f
1 /**
2 * Autogenerated by Thrift
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
8 #include <src/gen-py3/module/clients_wrapper.h>
10 namespace test {
11 namespace namespace_from_package {
12 namespace module {
15 folly::Future<int64_t>
16 TestServiceClientWrapper::init(
17 apache::thrift::RpcOptions& rpcOptions,
18 int64_t arg_int1) {
19 auto* client = static_cast<::test::namespace_from_package::module::TestServiceAsyncClient*>(async_client_.get());
20 folly::Promise<int64_t> _promise;
21 auto _future = _promise.getFuture();
22 auto callback = std::make_unique<::thrift::py3::FutureCallback<int64_t>>(
23 std::move(_promise), rpcOptions, client->recv_wrapped_init, channel_);
24 client->init(
25 rpcOptions,
26 std::move(callback),
27 arg_int1
29 return _future;
32 } // namespace test
33 } // namespace namespace_from_package
34 } // namespace module