fastify/avvio

Inconsistent or not documented "close" interface

StarpTech opened this issue · 5 comments

First discussed here

When the queue is not empty and a close handler was added the context is passed instead error.

In all cases of close the user expects an error.

Definitely.

Would you be able to send a PR?

What's your expectation?

To respect the API defined in https://github.com/mcollina/avvio#close.

I will prepare a PR