A gate handle — the value yield* MyGate produces. The named compact form of a gate's
service (both the light Tag path and the engine-included Service path yield this one type), so it
hovers as Gate<Ticket, Price> instead of the expanded ServiceOf<…> member wall; the docs
popover / prettify-ts expand it to the full shape on demand.
export interface GateMetrics {
/** Tokens remaining after the last rate-limit consume (idle `0` without `rateLimit`). */
readonly GateMetrics.remaining: Hyperlink.Subscribable<number>(property) GateMetrics.remaining: {
get: Effect.Effect<A>;
changes: Stream.Stream<A>;
}
Tokens remaining after the last rate-limit consume (idle 0 without rateLimit).
remaining: import HyperlinkHyperlink.interface Subscribable<A>A read-only reactive value: its current value (
Subscribable.get
, an Effect) plus a stream
of every change (
Subscribable.changes
). This is what a
ref
field surfaces — uniform local
and remote — and it's exactly the read side of a SubscriptionRef (Effect ships no Subscribable type in
this beta, so we name it here).
Subscribable<number>;
/** Milliseconds until the window fully resets (last consume). */
readonly GateMetrics.resetAfter: Hyperlink.Subscribable<number>(property) GateMetrics.resetAfter: {
get: Effect.Effect<A>;
changes: Stream.Stream<A>;
}
Milliseconds until the window fully resets (last consume).
resetAfter: import HyperlinkHyperlink.interface Subscribable<A>A read-only reactive value: its current value (
Subscribable.get
, an Effect) plus a stream
of every change (
Subscribable.changes
). This is what a
ref
field surfaces — uniform local
and remote — and it's exactly the read side of a SubscriptionRef (Effect ships no Subscribable type in
this beta, so we name it here).
Subscribable<number>;
/** Count of delay/reject exceed events since the gate built. */
readonly GateMetrics.exceeded: Hyperlink.Subscribable<number>(property) GateMetrics.exceeded: {
get: Effect.Effect<A>;
changes: Stream.Stream<A>;
}
Count of delay/reject exceed events since the gate built.
exceeded: import HyperlinkHyperlink.interface Subscribable<A>A read-only reactive value: its current value (
Subscribable.get
, an Effect) plus a stream
of every change (
Subscribable.changes
). This is what a
ref
field surfaces — uniform local
and remote — and it's exactly the read side of a SubscriptionRef (Effect ships no Subscribable type in
this beta, so we name it here).
Subscribable<number>;
}