localize As Flow
Localizes value by using the given clock's Clock.now as a reference point and returns a Flow that emits updated values based on the underlying TickingValue.nextTick. This function assumes that the given clock moves forward linearly.
The flow will automatically complete as soon as a localization returns null as TickingValue.nextTick, as that means that the localization is now "stable" and will not require further passes.
Important: please note that this function does not track changes on the given clock. If the clock changes (e.g. because of a NTP sync or manual intervention), this function will not recompute the value immediately, but wait for the normal amount of time as returned by TickingValue.nextTick. This might cause the localized value to be stale for a certain amount of time. This should not normally be a problem given that usually adjustments are in the order of milliseconds. If this is a concern for you can either track the clock changes in your platform and subscribe to a fresh Flow when it happens, or provide a maxTick parameter, which guarantees a fresh computation at least every maxTick. Note that, as Clock is a source of Instants (and not local values), DST changes are not affected by this, and will work correctly.
Parameters
the value to localized, passed as-is to localize
the clock to use to obtain the reference point
the maximum amount of to wait for a recomputation (as long as the underlying localize returns a non-null TickingValue.nextTick). If null (the default), no max tick bound is applied.