Skip to content

Instantly share code, notes, and snippets.

@wong2
Created January 28, 2017 04:30
Embed
What would you like to do?
async function runBatch(client, command, keys, ...args) {
let batch = client.batch()
for (let key of keys) {
batch[command](key, ...args)
}
return batch.execAsync()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment