axa-group / bauta.js

Bauta.js is an add-on for your Node.js applications such as Express.js or Fastify.
Other
42 stars 3 forks source link

tap: ignore promise settlement when using tap #89

Closed Xavier-Redondo closed 8 months ago

Xavier-Redondo commented 1 year ago

currently if we use tap with an asyncrhonous function the tap decorator waits for its settlement, which is not desirable since we do not care about its result

it would be better if instead we ignore its settlement, basically paralelizing the code inside tap with the flow of the parent pipeline execution.

Xavier-Redondo commented 8 months ago

i have made another issue related to this issue that superseeds this issue (because the behaviour described in this issue would be wrong)