@adviser/cement - v0.0.0
    Preparing search index...

    Class WrapperBasicSysAbstraction

    BasicSysAbstraction implementation with configurable service modes.

    Wraps a base system abstraction and allows overriding time, ID, and random number generation modes. This is the primary implementation returned by BasicSysAbstractionFactory and provides the unified interface for all platform-independent system services.

    Delegates runtime-specific operations (Stdout, Stderr, Env, Args) to the underlying runtime service while providing configurable implementations for testable services (Time, ID, Random).

    // Created via factory
    const sys = BasicSysAbstractionFactory({
    TimeMode: TimeMode.STEP,
    IdMode: IDMode.UUID,
    RandomMode: RandomMode.RANDOM
    });

    // Use time service
    const time = sys.Time();
    const now = time.Now();
    await time.Sleep(1000);

    // Use ID service
    const id = sys.NextId();

    // Use random service
    const random = sys.Random0ToValue(100);

    // Access runtime services
    const stdout = sys.Stdout();
    const env = sys.Env();
    const args = sys.Args();

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _time: Time
    _idService: IdService
    _randomService: RandomService
    _basicRuntimeService: BasicRuntimeService

    Methods