title: Swift, actor: Actor-isolated property 'scanning' can not be mutated from a non-isolated context
body: <p>I have an actor:</p>
  <pre><code>actor StatesActor {
  
      var job1sActive:Bool = false
      ...
  
  }
  </code></pre>
  <p>I have an object that uses that actor:</p>
  <pre><code>class MyObj {
      
      let myStates = StatesActor()
      
      func job1() async {
      
          myStates.job1IsActive = true
  
      }
  }
  </code></pre>
  <p>Line:</p>
  <p><code>myStates.job1IsActive = true</code></p>
  <p>errors out with this error:</p>
  <blockquote>
  <p>Actor-isolated property 'job1IsActive' can not be mutated from a non-isolated context</p>
  </blockquote>
  <p>How can I use an actor to store/read state information correctly so the MyObj can use it to read and set state?</p>