UNPKG

veffect

Version:

powerful TypeScript validation library built on the robust foundation of Effect combining exceptional type safety, high performance, and developer experience. Taking inspiration from Effect's functional principles, VEffect delivers a balanced approach tha

44 lines 1.33 kB
import * as internal from "./internal/resource.js"; /** * @since 2.0.0 * @category symbols */ export const ResourceTypeId = internal.ResourceTypeId; /** * Creates a new `Resource` value that is automatically refreshed according to * the specified policy. Note that error retrying is not performed * automatically, so if you want to retry on errors, you should first apply * retry policies to the acquisition effect before passing it to this * constructor. * * @since 2.0.0 * @category constructors */ export const auto = internal.auto; /** * Retrieves the current value stored in the cache. * * @since 2.0.0 * @category getters */ export const get = internal.get; /** * Creates a new `Resource` value that must be manually refreshed by calling * the refresh method. Note that error retrying is not performed * automatically, so if you want to retry on errors, you should first apply * retry policies to the acquisition effect before passing it to this * constructor. * * @since 2.0.0 * @category constructors */ export const manual = internal.manual; /** * Refreshes the cache. This method will not return until either the refresh * is successful, or the refresh operation fails. * * @since 2.0.0 * @category utils */ export const refresh = internal.refresh; //# sourceMappingURL=Resource.js.map