Skip to main content

Module usage

Module usage 

Source
Expand description

usage(): the token/cost report a /usage view drew.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use forge_primitives::token_usage::UsageReport; ๐Ÿ”’
use super::ViewSurface; ๐Ÿ”’

Constantsยง

USAGE_WINDOW ๐Ÿ”’
How long a scan answers for. A client refreshing on a timer asks again every so often, and the pool does not change fast enough to pay a walk per ask; one walk per window is the same answer a reader would have had.