code: func BuildState(cb func(*SyncState)) *State {
  	s := NewState()
  	cb(s.SyncWrapper())
  	return s
  }
docs: // BuildState is a helper -- primarily intended for tests -- to build a state
  // using imperative code against the StateSync type while still acting as
  // an expression of type *State to assign into a containing struct.