UNPKG

@ew-did-registry/did-ipfs-store

Version:

IPFS-based implementation of IDidStore

13 lines (12 loc) 509 B
/** * @description asynchronously waits for fulfillment of given condition. Throws error if condition wasn't fulfilled in time * * @param condition asynchronous funtion which resolves to boolean * @param opts.timeout time to wait until `condition` is met, in seconds * @param opts.interval interval between `condition` checking attempts, in seconds * @returns */ export declare const waitFor: (condition: () => Promise<boolean>, opts: { timeout: number; interval?: number; }) => Promise<void>;