MCPcopy Create free account
hub / github.com/Clarionos/clarion / wait_for_response

Method wait_for_response

libraries/fc/src/rpc/state.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 return request;
50}
51variant state::wait_for_response( uint64_t request_id )
52{
53 auto itr = _awaiting.find(request_id);
54 FC_ASSERT( itr != _awaiting.end() );
55 auto fut = itr->second->get_future();
56 return fut.get();
57}
58void state::close()
59{
60 for( auto& item : _awaiting )

Callers 2

send_callMethod · 0.45
send_callbackMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected