go-feature-flag icon indicating copy to clipboard operation
go-feature-flag copied to clipboard

feat: Add initial delay for polling feature configuration

Open samuolis opened this issue 6 months ago • 4 comments

Description

  • Added pollingDelayInMillis in initialize options, to declare delay for the first request of feature flags
  • Added tests to cover this case

This should solve the issue of getting feature flags before the first polling even happened (Default delay is 5 mins, it is okay for polling but not okay for waiting for initial data)

Checklist

  • [x] I have tested this code
  • [x] I have added unit test to cover this code
  • [x] I have updated the documentation (README.md and /website/docs)
  • [x] I have followed the contributing guide

samuolis avatar Aug 23 '24 10:08 samuolis