// Set sets current value of an object.
Set sets current value of an object.
// Set sets current value of an object .
func (o *Object[T]) Set(value T) {
	o.lock.Lock()
	defer o.lock.Unlock()
	o.state = o.state.update(value)
}
func ( o * Object [ T ] ) Set ( value T ) { o . lock . Lock ( ) defer o . lock . Unlock ( ) o . state = o . state . update ( value ) }
Set sets current value of an object.
Set sets current value of an object .