synchronized-promise
synchronized-promise copied to clipboard
Change default timeout to infinity
時間控制算是 optional 的
@Yukaii
In my use case, I was polling for a dependent service. Until that service comes up my server will have to wait forever.
I would love to see the options parameter accept {timeouts: Number.POSITIVE_INFINITY}
If you accept the pull request I can make that happen.
code that error out if timeouts equal Infinity :

https://github.com/Yukaii/synchronized-promise/blob/master/lib/index.js#L34
Hi @SuperCipher, feel free to open a PR!