kevincianfarini / monarch

Multiplatform, multi module, type safe feature flagging.
https://kevincianfarini.github.io/monarch/docs/0.x/
Apache License 2.0
65 stars 0 forks source link

Reconsider the necessity of suspending operations #8

Closed kevincianfarini closed 1 year ago

kevincianfarini commented 1 year ago

Right now, currentValueFor is a suspending function. This was chosen with the use case of a client-server RDBMS backing a data store, and thus potentially desiring suspending ops.

No client library for feature flags we've evaluated yet requires suspending simply to get a value. Does imposing suspending functions on consumers of this API seem like overkill? Possibly.