attestantio / vouch

Apache License 2.0
112 stars 28 forks source link

Add soft timeouts. #61

Closed mcdee closed 2 years ago

mcdee commented 2 years ago

This adds the concept of soft timeouts to strategies. Details are in the relevant section of the configuration documentation, but the short version is that a soft timeout occurs at half the timeout period, and causes an immediate return if some values have been obtained. This allows Vouch to wait as long as it can for a response, but to return quickly if it has data.