You can find some good sample usages in this code such as Promise, Async/Await, spread/rest of array.
It is a very simple example to show how to handle long-running requests in Node.js with RabbitMQ.
You need to have a RabbitMQ docker in development machine.
Install RabbitMQ with Docker
I implemented ES6 syntax for below example.
This Node.js code will get git user details. I used standard ES5 functions and promise.