import { latch } from "@/boxes/latch"

/** One-shot signal (latch wrapper matching original trigger/wait API) */
export function signal() {
  const l = latch()
  return {
    trigger: l.trip,
    wait: l.wait,
  }
}
