[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: FiberId.ts
/** * @since 2.0.0 */ import type * as Equal from "./Equal.js" import type * as HashSet from "./HashSet.js" import type { Inspectable } from "./Inspectable.js" import * as internal from "./internal/fiberId.js" import type * as Option from "./Option.js" /** * @since 2.0.0 * @category symbols */ export const FiberIdTypeId: unique symbol = internal.FiberIdTypeId /** * @since 2.0.0 * @category symbols */ export type FiberIdTypeId = typeof FiberIdTypeId /** * @since 2.0.0 * @category models */ export type Single = None | Runtime /** * @since 2.0.0 * @category models */ export type FiberId = Single | Composite /** * @since 2.0.0 * @category models */ export interface None extends Equal.Equal, Inspectable { readonly [FiberIdTypeId]: FiberIdTypeId readonly _tag: "None" readonly id: -1 readonly startTimeMillis: -1 } /** * @since 2.0.0 * @category models */ export interface Runtime extends Equal.Equal, Inspectable { readonly [FiberIdTypeId]: FiberIdTypeId readonly _tag: "Runtime" readonly id: number readonly startTimeMillis: number } /** * @since 2.0.0 * @category models */ export interface Composite extends Equal.Equal, Inspectable { readonly [FiberIdTypeId]: FiberIdTypeId readonly _tag: "Composite" readonly left: FiberId readonly right: FiberId } /** * @since 2.0.0 * @category constructors */ export const none: None = internal.none /** * @since 2.0.0 * @category constructors */ export const runtime: (id: number, startTimeMillis: number) => Runtime = internal.runtime /** * @since 2.0.0 * @category constructors */ export const composite: (left: FiberId, right: FiberId) => Composite = internal.composite /** * Returns `true` if the specified unknown value is a `FiberId`, `false` * otherwise. * * @since 2.0.0 * @category refinements */ export const isFiberId: (self: unknown) => self is FiberId = internal.isFiberId /** * Returns `true` if the `FiberId` is a `None`, `false` otherwise. * * @since 2.0.0 * @category refinements */ export const isNone: (self: FiberId) => self is None = internal.isNone /** * Returns `true` if the `FiberId` is a `Runtime`, `false` otherwise. * * @since 2.0.0 * @category refinements */ export const isRuntime: (self: FiberId) => self is Runtime = internal.isRuntime /** * Returns `true` if the `FiberId` is a `Composite`, `false` otherwise. * * @since 2.0.0 * @category refinements */ export const isComposite: (self: FiberId) => self is Composite = internal.isComposite /** * Combine two `FiberId`s. * * @since 2.0.0 * @category constructors */ export const combine: { /** * Combine two `FiberId`s. * * @since 2.0.0 * @category constructors */ (that: FiberId): (self: FiberId) => FiberId /** * Combine two `FiberId`s. * * @since 2.0.0 * @category constructors */ (self: FiberId, that: FiberId): FiberId } = internal.combine /** * Combines a set of `FiberId`s into a single `FiberId`. * * @since 2.0.0 * @category constructors */ export const combineAll: (fiberIds: HashSet.HashSet<FiberId>) => FiberId = internal.combineAll /** * Returns this `FiberId` if it is not `None`, otherwise returns that `FiberId`. * * @since 2.0.0 * @category utils */ export const getOrElse: { /** * Returns this `FiberId` if it is not `None`, otherwise returns that `FiberId`. * * @since 2.0.0 * @category utils */ (that: FiberId): (self: FiberId) => FiberId /** * Returns this `FiberId` if it is not `None`, otherwise returns that `FiberId`. * * @since 2.0.0 * @category utils */ (self: FiberId, that: FiberId): FiberId } = internal.getOrElse /** * Get the set of identifiers for this `FiberId`. * * @since 2.0.0 * @category destructors */ export const ids: (self: FiberId) => HashSet.HashSet<number> = internal.ids /** * Creates a new `FiberId`. * * @since 2.0.0 * @category constructors */ export const make: (id: number, startTimeSeconds: number) => FiberId = internal.make /** * Creates a string representing the name of the current thread of execution * represented by the specified `FiberId`. * * @since 2.0.0 * @category destructors */ export const threadName: (self: FiberId) => string = internal.threadName /** * Convert a `FiberId` into an `Option<FiberId>`. * * @since 2.0.0 * @category destructors */ export const toOption: (self: FiberId) => Option.Option<FiberId> = internal.toOption /** * Convert a `FiberId` into a `HashSet<FiberId>`. * * @since 2.0.0 * @category destructors */ export const toSet: (self: FiberId) => HashSet.HashSet<Runtime> = internal.toSet /** * Unsafely creates a new `FiberId`. * * @since 2.0.0 * @category unsafe */ export const unsafeMake: (_: void) => Runtime = internal.unsafeMake
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.84 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