MCPcopy
hub / github.com/signalapp/Signal-Desktop / get

Method get

ts/util/BackOff.std.ts:53–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 public get(): number {
54 // oxlint-disable-next-line typescript/no-non-null-assertion
55 let result = this.#timeouts[this.#count]!;
56 const { jitter = 0, random = DEFAULT_RANDOM } = this.#options;
57
58 // Do not apply jitter larger than the timeout value. It is supposed to be
59 // activated for longer timeouts.
60 if (jitter < result) {
61 result += random() * jitter;
62 }
63 return result;
64 }
65
66 public getAndIncrement(): number {
67 const result = this.get();

Callers 15

getAndIncrementMethod · 0.95
getIdentityKeyPairMethod · 0.45
#_getKyberPreKeyEntryMethod · 0.45
confirmKyberPreKeyMethod · 0.45
loadPreKeyMethod · 0.45
loadSignedPreKeyMethod · 0.45
confirmSignedPreKeyMethod · 0.45
#_getSenderKeyQueueMethod · 0.45
getSenderKeyMethod · 0.45
#_getSessionQueueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected