skip to Main Content

Facebook Graph API Long-Lived Token

I am working with Facebook Graph API and I have followed the instruction on the official documentation page to obtain a Long-Lived Token using a previously extracted access token by running the below code //Get long-lived access token var longLiveToken…

VIEW QUESTION

Nodejs redis method BLPOP blocks the event-loop

I use the library node-redis: https://github.com/NodeRedis/node-redis let client = redis.createClient(); let blpopAsync = util.promisify(client.blpop).bind(client); let rpushAsync = util.promisify(client.rpush).bind(client); async function consume() { let data = await blpopAsync('queue', 0); // the program is blocked at here } async function otherLongRunningTasks() {…

VIEW QUESTION
Back To Top
Search