Saltar al contenido principal

Documentation Index

Fetch the complete documentation index at: https://acme-c84a37e5.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Ejemplos con Bun

import { describe, it, expect } from "bun:test";
import tryo, { run } from "tryo";
import { computeBackoffDelay } from "tryo/dist/utils";

describe("run: success", () => {
  it("retorna ok con data", async () => {
    const r = await run(async () => 42);
    expect(r.ok).toBe(true);
  });
});

describe("utils: backoff", () => {
  it("linear/exponential/fibonacci", () => {
    expect(computeBackoffDelay("linear", 100, 3)).toBe(100);
  });
});