1
我想使用FuncType
作爲foo
函數的參數類型。節儉支持嗎?如何在FuncType
中定義類型?apache節點是否支持函數變量作爲參數?
struct FuncType {
// std::function<std::vector<std::pair<int, int>>(const std::string &)>;
// how to define here?
}
service WorkerService {
bool foo(1:FuncType func)
}
它會如何工作?被調用函數會發生什麼? –
[Thrift異步函數中的回調函數?]的可能重複(http://stackoverflow.com/questions/2554999/callbacks-in-thrift-asynchronous-functions) – JensG