validateAsync
that retrieves the current value. With that function, validateAsync
will check the value when async validation completes. If the value is unchanged, the Promise
will resolve normally; if the value did change during async validation, the Promise
will be rejected. The rejection will include the async result, but your application typically will not consume it.validateAsync
validateAsync
function exported from Strickland supports this same feature. Instead of passing the value to be validated, pass a function that returns the current value. If the value changes during async validation, the result Promise
will reject.