{{! Copyright (c) Meta Platforms, Inc. and its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. }} {{#service:functions}}{{#function:return_type}}{{^function:starts_interaction?}} {{^function:eb}} virtual {{ > service_common/sync_function_return_type_server}} sync_{{function:cpp_name}}({{ > service_common/sync_function_return_param_server}}{{ > service_common/function_param_list_server_commented_out}}); [[deprecated("Use sync_{{function:cpp_name}} instead")]] virtual {{ > service_common/sync_function_return_type_server}} {{function:cpp_name}}({{ > service_common/sync_function_return_param_server}}{{ > service_common/function_param_list_server_commented_out}}); {{^service:interaction?}} virtual folly::Future<{{ > types/return_type_server_lift_unit}}> future_{{function:cpp_name}}({{ > service_common/function_param_list_server}}); {{/service:interaction?}} virtual folly::SemiFuture<{{ > types/return_type_server_lift_unit}}> semifuture_{{function:cpp_name}}({{ > service_common/function_param_list_server}}); #if FOLLY_HAS_COROUTINES virtual folly::coro::Task<{{ > types/return_type_server}}> co_{{function:cpp_name}}({{ > service_common/function_param_list_server}}); virtual folly::coro::Task<{{ > types/return_type_server}}> co_{{function:cpp_name}}(apache::thrift::RequestParams params{{function:comma}}{{ > service_common/function_param_list_server}}); #endif {{/function:eb}} {{#function:oneway?}} virtual void async_{{#function:eb}}eb{{/function:eb}}{{^function:eb}}tm{{/function:eb}}_{{function:cpp_name}}(std::unique_ptr callback{{function:comma}}{{ > service_common/function_param_list_server}}); {{/function:oneway?}} {{^function:oneway?}} virtual void async_{{#function:eb}}eb{{/function:eb}}{{^function:eb}}tm{{/function:eb}}_{{function:cpp_name}}(std::unique_ptr types/return_type_server}}>> callback{{function:comma}}{{ > service_common/function_param_list_server}}); {{/function:oneway?}} {{/function:starts_interaction?}}{{#function:starts_interaction?}} virtual std::unique_ptr<{{type:name}}If> {{function:cpp_name}}(); {{/function:starts_interaction?}} {{/function:return_type}} {{/service:functions}} private: {{^service:interaction?}} static {{service:qualified_name}}ServiceInfoHolder __fbthrift_serviceInfoHolder; {{/service:interaction?}} {{#service:functions}} {{^function:eb}} std::atomic __fbthrift_invocation_{{function:cpp_name}}{apache::thrift::detail::si::InvocationType::AsyncTm}; {{/function:eb}} {{/service:functions}}