MCPcopy Create free account
hub / github.com/comaps/comaps / SetTimeout

Method SetTimeout

libs/routing/router_delegate.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void RouterDelegate::SetTimeout(uint32_t timeoutSec)
42{
43 if (timeoutSec == kNoTimeout)
44 return;
45
46 std::chrono::steady_clock::duration const timeout = std::chrono::seconds(timeoutSec);
47 m_cancellable.SetDeadline(std::chrono::steady_clock::now() + timeout);
48}
49} // namespace routing

Callers 2

RouterDelegateProxyMethod · 0.45
operator()Method · 0.45

Calls 1

SetDeadlineMethod · 0.80

Tested by

no test coverage detected