Ingestion
Flagger collects every "decision" that was made (for example, whether isEnabled
true or false for a given entity), and then sends it to populate the Airdeploy dashboard. This data is used to populate known entities, set up filters, and preview how flag assignments will be made.
Flagger caches ingestions and sends them to Airdeploy automatically.
Shutdown Flagger gracefully at the end of the application's runtime to send cached ingestion:
await Flagger.shutdown() // shutdown is a Promise
Flagger.shutdown(3000)
Flagger.shutdown(3000)
Flagger.shutdown(3000)
Flagger.shutdown(3000)
let isTimeOut = Flagger.shutdown(timeoutMillis: 1000)