import { throwError, timeout } from "rxjs";
export class TimeoutError extends Error {
}
/** Throws a {@link TimeoutError} if a value is not emitted within the timeout */
export function simpleTimeout(first, message) {
    return timeout({ first, with: () => throwError(() => new TimeoutError(message ?? "Timeout")) });
}
