void MyServiceSvIf::async_tm_getDataById(std::unique_ptr<apache::thrift::HandlerCallback<std::unique_ptr<std::string>>> callback, int64_t id) { apache::thrift::detail::si::async_tm(this, std::move(callback), [&] { return future_getDataById(id); }); }
folly::Future<std::string> MyServiceAsyncClient::future_getDataById(int64_t id) { ::apache::thrift::RpcOptions rpcOptions; return future_getDataById(rpcOptions, id); }
void MyServiceFastSvIf::async_eb_getDataById(std::unique_ptr<apache::thrift::HandlerCallback<std::string>> callback, int64_t id) { apache::thrift::detail::si::async_eb(this, std::move(callback), [this, id]() mutable { return future_getDataById(id); }); }