Skip to content

Instantly share code, notes, and snippets.

@wong2 wong2/batch.js
Created Jan 28, 2017

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
You can’t perform that action at this time.