Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Heartbeat

import { Heartbeat } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class Heartbeat {
constructor(
ph: PH,
interval: number,
maxOut: number,
);
interval: number;
maxOut: number;
pendings: Promise<void>[];
ph: PH;
timer?: number;
 
_reset();
_schedule();
cancel(stale?: boolean);
start();
}

§Constructors

§
new Heartbeat(ph: PH, interval: number, maxOut: number)
[src]

§Properties

§
interval: number
[src]
§
maxOut: number
[src]
§
pendings: Promise<void>[]
[src]
§
timer: number
[src]

§Methods

§
_reset()
[src]
§
_schedule()
[src]
§
cancel(stale?: boolean)
[src]
§
start()
[src]