setValue
inline suspend fun <T> setValue(value: T?, buildSettings: EncodeSettings.Builder.() -> Unit = {})(source)
Sets the value at this location, suspending until the server has acknowledged the write.
While the client is offline the SDK applies the value locally and queues it, so this call, like the other suspending writes, suspends until the connection is restored; wrap it in withTimeout to fail fast instead.
Parameters
value
The value to write, encoded with buildSettings
inline suspend fun <T> setValue(strategy: SerializationStrategy<T>, value: T, buildSettings: EncodeSettings.Builder.() -> Unit = {})(source)
Deprecated
Deprecated. Use builder instead
Replace with
setValue(value) { this.encodeDefaults = encodeDefaults }Content copied to clipboard
suspend fun <T> setValue(strategy: SerializationStrategy<T>, value: T, encodeDefaults: Boolean)(source)
Deprecated
Deprecated. Use builder instead
Replace with
setValue(strategy, value) { this.encodeDefaults = encodeDefaults }Content copied to clipboard