MCPcopy Create free account
hub / github.com/bloomberg/quantum / isPendingContext

Method isPendingContext

quantum/util/impl/quantum_sequencer_impl.h:543–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541
542template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
543bool
544Sequencer<SequenceKey, Hash, KeyEqual, Allocator>::isPendingContext(const ICoroContextBasePtr& ctx,
545 const ICoroContextBasePtr& ctxToValidate)
546{
547 return ctxToValidate && ctxToValidate->valid() &&
548 ctxToValidate->waitFor(ctx, std::chrono::milliseconds::zero()) == std::future_status::timeout;
549}
550
551template <class SequenceKey, class Hash, class KeyEqual, class Allocator>
552bool

Callers

nothing calls this directly

Calls 2

validMethod · 0.45
waitForMethod · 0.45

Tested by

no test coverage detected