File size: 304 Bytes
776286d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
/**
 * Sends one telemetry row and forgets it: a missing `$.telemetry` (no
 * telemetry built-in) throws synchronously, a refused row rejects; both drop.
 *
 * @param send posts the row
 */
export function safely(send: () => Promise<void>) {
  try {
    void send().catch(() => undefined)
  } catch {}
}