This highlight the fact that it's not designed for direct consumption and it no longer needs a special handling in `npmignore`.
249 B
249 B
import { coalesceCalls } from '@vates/coalesce-calls'
const connect = coalesceCalls(async function () {
// async operation
})
connect()
// the previous promise result will be returned if the operation is not
// complete yet
connect()