set

inline suspend fun <T : Any> ObjectContext.set(key: String, value: T)


@ApiStatus.Experimental
inline suspend fun <T : Any> KotlinState.set(key: String, value: T)

Sets the given value under the given key.

Parameters

key

the name of the state key.

value

to store under the given key.

Throws

if called from a Shared handler