JS8Call-Improved master
Loading...
Searching...
No Matches
js8::OptionalWorkBudget Class Reference

Public Types

using Clock = OptionalWorkSignal::Clock
using Duration = OptionalWorkSignal::Duration

Public Member Functions

 OptionalWorkBudget (OptionalWorkSignal const *signal, Duration reserve, std::array< Duration, stages > &estimates, bool unknownMandatory=false)
bool allow (OptionalStage stage) const
bool stop () const
void observe (OptionalStage stage, Clock::time_point started)

Static Public Attributes

static constexpr std::size_t stages

Member Data Documentation

◆ stages

std::size_t js8::OptionalWorkBudget::stages
staticconstexpr
Initial value:
=
static_cast<std::size_t>(OptionalStage::Count)

The documentation for this class was generated from the following file: