@numaproj/numaflow-js - v0.0.0-alpha.4
    Preparing search index...

    Class AsyncServer

    Async server for reduce stream operations.

    const server = new reduceStream.AsyncServer(async function* (keys, datums, metadata) {
    for await (const datum of datums) {
    yield new reduceStream.Message(datum.value);
    }
    });
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Start the reduce stream server.

      Parameters

      • OptionalsocketPath: string | null

        Optional custom Unix socket path

      • OptionalserverInfoPath: string | null

        Optional path for server info file

      Returns Promise<void>

    • Stop the server gracefully.

      Returns void