

If you want to do something every time an async event occurs it is often better to just use.

waitForNextClick makes sense as a Promise name because nextClick is a single event, but ever圜lick doesn't make much sense as a Promise since Promises can only resolve once. For example, to control who can respond to your form, press the SR key+Up or Down arrow key until you hear. Note that Promises are useful for async events that happen once per Promise. To browse the options in the menu, press the SR key+Up or Down arrow key. You hear: 'Settings, menu item.' Press Enter to open the Settings menu. We will be adding the following validations to the sign-up form: First name and last name have to contain at least 3 characters.
#USING PROMISES WITH KEYUP FOR FORMS CODE#
I'm a Promise newbie and I am trying to convert some existing code (which is quite simple) to work with promises. Press Shift+Tab until you hear 'More options,' and press Enter. The values received in the input fields can be validated on the change event handler. EDIT: tried to clarify the question and shorten it - I'd put in some code to show I had tried to solve this, but I think it only confused things. Speakers: James SnellWhen a customer comes to us with a complaint that their code is running slowly, our first question has become, 'Are you using Promises'.
