jinyus / dart_beacon

A reactive primitive (signals) and state management library for dart and flutter
https://pub.dev/packages/state_beacon
27 stars 2 forks source link

[Feat] Add TTL (Time to Live) functionality to FutureBeacon #61

Open jinyus opened 8 months ago

jinyus commented 8 months ago

Description

Add the ability to invalidate the data of a future beacon. When time-to-live(ttl) is provided; the future will be re-executed when the data becomes stale. I am not sure how useful this is...This is essentially polling which isn't too hard to implement; so I'm not sure this should be apart of the API. LMK if you disagree.

Type of Change