async-redis icon indicating copy to clipboard operation
async-redis copied to clipboard

createClient blocks

Open neilyoung opened this issue 2 years ago • 1 comments

Both variants do not return to console.

const asyncRedis = require("async-redis");
const client = asyncRedis.createClient();


// (async () => {
//     console.log("hello")
// })()

console.log("hello")

createClient is to blame

neilyoung avatar Feb 06 '23 09:02 neilyoung

Oops, client.quit() helps. Should be documented

neilyoung avatar Feb 06 '23 09:02 neilyoung