openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 350 B
JavaScript
import { i as raceWithTimeout } from "./src-DIZdnDBl.mjs";
//#region src/shared/settle-within.ts
/** A deadline bounds waiting; fulfillment alone does not certify resource cleanup. */
async function settlesWithin(e, t) {
return await raceWithTimeout(e.then(() => true), t, () => false, { ref: false });
}
//#endregion
export { settlesWithin as t };