mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 11:34:21 +01:00
Add a `Once` object to uphold this property. We cannot use the OnceLock to dictate this, because if we set the OnceLock before actually calling the callback, there is a moment in time where we will have an incorrect transient state. This change ensures we atomically call the callback and then set the OnceLock Should fix #3217 Closes #3217 Closes #3237