Hacker News new | past | comments | ask | show | jobs | submit login

How about register the action but start a timer to allow cancellation?



Wouldn’t that likely make most presses take longer, since the cancellation timer would surely be longer than the duration people keep the button pressed before releasing?


> In some safety critical software, it's important to do the opposite, to provide a means for a user to abort




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: