node-georedis icon indicating copy to clipboard operation
node-georedis copied to clipboard

How to use async/await with node-georedis?

Open sinevitch opened this issue 4 years ago • 1 comments

let result = await store.nearby({ latitude: lat, longitude: lng }, 30);

sinevitch avatar Jan 19 '21 16:01 sinevitch

You can use util.promisify to wrap it in a promise and then use await.

satya9500 avatar Aug 08 '21 08:08 satya9500