Merge pull request #30 from nathanhourt/phoenix
Add missing synchronous call overload to json_connection
This commit is contained in:
commit
9f401c7143
1 changed files with 8 additions and 0 deletions
|
|
@ -107,6 +107,14 @@ namespace fc { namespace rpc {
|
|||
const variant& a7
|
||||
);
|
||||
|
||||
template<typename Result>
|
||||
Result call( const fc::string& method,
|
||||
const variants& args,
|
||||
microseconds timeout = microseconds::maximum())
|
||||
{
|
||||
return async_call( method, args ).wait(timeout).as<Result>();
|
||||
}
|
||||
|
||||
template<typename Result>
|
||||
Result call( const fc::string& method,
|
||||
const variant& a1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue