[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: fiberStatus.js
import * as Equal from "../Equal.js"; import { pipe } from "../Function.js"; import * as Hash from "../Hash.js"; import { hasProperty } from "../Predicate.js"; const FiberStatusSymbolKey = "effect/FiberStatus"; /** @internal */ export const FiberStatusTypeId = /*#__PURE__*/Symbol.for(FiberStatusSymbolKey); /** @internal */ export const OP_DONE = "Done"; /** @internal */ export const OP_RUNNING = "Running"; /** @internal */ export const OP_SUSPENDED = "Suspended"; const DoneHash = /*#__PURE__*/Hash.string(`${FiberStatusSymbolKey}-${OP_DONE}`); /** @internal */ class Done { [FiberStatusTypeId] = FiberStatusTypeId; _tag = OP_DONE; [Hash.symbol]() { return DoneHash; } [Equal.symbol](that) { return isFiberStatus(that) && that._tag === OP_DONE; } } /** @internal */ class Running { runtimeFlags; [FiberStatusTypeId] = FiberStatusTypeId; _tag = OP_RUNNING; constructor(runtimeFlags) { this.runtimeFlags = runtimeFlags; } [Hash.symbol]() { return pipe(Hash.hash(FiberStatusSymbolKey), Hash.combine(Hash.hash(this._tag)), Hash.combine(Hash.hash(this.runtimeFlags)), Hash.cached(this)); } [Equal.symbol](that) { return isFiberStatus(that) && that._tag === OP_RUNNING && this.runtimeFlags === that.runtimeFlags; } } /** @internal */ class Suspended { runtimeFlags; blockingOn; [FiberStatusTypeId] = FiberStatusTypeId; _tag = OP_SUSPENDED; constructor(runtimeFlags, blockingOn) { this.runtimeFlags = runtimeFlags; this.blockingOn = blockingOn; } [Hash.symbol]() { return pipe(Hash.hash(FiberStatusSymbolKey), Hash.combine(Hash.hash(this._tag)), Hash.combine(Hash.hash(this.runtimeFlags)), Hash.combine(Hash.hash(this.blockingOn)), Hash.cached(this)); } [Equal.symbol](that) { return isFiberStatus(that) && that._tag === OP_SUSPENDED && this.runtimeFlags === that.runtimeFlags && Equal.equals(this.blockingOn, that.blockingOn); } } /** @internal */ export const done = /*#__PURE__*/new Done(); /** @internal */ export const running = runtimeFlags => new Running(runtimeFlags); /** @internal */ export const suspended = (runtimeFlags, blockingOn) => new Suspended(runtimeFlags, blockingOn); /** @internal */ export const isFiberStatus = u => hasProperty(u, FiberStatusTypeId); /** @internal */ export const isDone = self => self._tag === OP_DONE; /** @internal */ export const isRunning = self => self._tag === OP_RUNNING; /** @internal */ export const isSuspended = self => self._tag === OP_SUSPENDED; //# sourceMappingURL=fiberStatus.js.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.82 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