load

open suspend override fun load(): Result<BudgetSnapshot>(source)

Counts the call in loadCount, waits loadDelay (virtual under a test scheduler), then returns snapshot, or delivers the failure armed by failLoads: returned in the Result, or thrown when it was armed with thrown = true.

Return

snapshot, or a failure holding the cause armed by failLoads.

Throws

the cause armed by failLoads, when it was armed with thrown = true.