Type alias ProducerHandler

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

Producer handler function.

Type declaration

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

      Returns Promise<Data | undefined>

Remarks

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