Skip to main content
Module

x/rambda/wait.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function wait(fn){ return new Promise(resolve => { fn.then(result => resolve([ result, undefined ])).catch(e => resolve([ undefined, e ])) })}