Uneventful
    Preparing search index...

    Module uneventful/shared

    Tools for sharing tasks, values, services, etc., especially across job boundaries, but also across reactive expression lifetimes (similar to React hooks).

    Resources

    expiring

    Proxy an object so it "expires" (becomes inaccessible) with the calling job.

    fork

    Wrap a generator, generator function, or generator method to run in parallel and have a result that can be waited on in parallel as well.

    Singletons & Lazy Constants

    $

    Return a singleton instance for the given factory, or create a per-signal lazy constant (a bit like React's useMemo, but without the deps or ordering constraints).

    $cache

    Utilities for manipulating the singleton cache (e.g. for testing)

    service

    Wrap a factory function to create a "service" accessor (a shorthand function for getting $(factory)).

    Types and Interfaces

    ConstantFactory

    A function, or class constructor producing a value that will be cached by $``() as a permanent-per-signal constant at a given call site.

    SingletonFactory

    A function, or class constructor producing a value that will be cached by $() and service() accessors for the life of the root job, or until overridden or unset via $cache.