Type Alias ProducerHandler

ProducerHandler: ((interest: Interest, producer: Producer) => Promise<Data | undefined>)

Producer handler function.

Type declaration

    • (interest, producer): Promise<Data | undefined>
    • Parameters

      Returns Promise<Data | undefined>

The handler may be invoked concurrently up to ProducerOptions.concurrency instances. The handler should return a Promise that resolves to: