poll
Function to poll a provided request until a validation state or timeout is reached
NOTE: we expose this as a public util, but should use this functionality sparingly when dealing with the Portal API. Best practice is to leverage this polling functionality internally on functions that we know incur a Portal delay.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
requestFn Required | function() : Promise<> | ||
validationFn Required | function(resp: ) : boolean | ||
options Optional | {
|
Returns
Promise<>
Function defined in common/src/utils/poll.ts:14