validateAsyncthat retrieves the current value. With that function,
validateAsyncwill check the value when async validation completes. If the value is unchanged, the
Promisewill resolve normally; if the value did change during async validation, the
Promisewill be rejected. The rejection will include the async result, but your application typically will not consume it.
validateAsyncfunction 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