-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set timeout #25
Comments
This api is not open yet. But it may be released tonight. |
OK, is there any link about this update? And is there any way to stop the promise manually? Have to stop the promise manually, because the process is too long. |
Maybe you should use setTimeout(async () => {
try {
const ms = await Ping.start('114.114.114.114');
} catch (error) {
console.log('something happened', error);
}
}, 1000); If any update,i will push to |
Thanks. I'll wait, but setTimeout is still not a solution. |
Please update to |
Error:Can't setup.The previous request is still running.
I have several local IP address to ping, if one down, others are down too.
new feature request:
await Ping.start('192.168.1.111', { timeout: 1500 })
The text was updated successfully, but these errors were encountered: