title: vuejs call function when no activity for 5 seconds after typing in text
body: <p>I am trying to make something like autosave but need call function only when user didn't type anything in textarea for example 5 seconds</p>
  
  <pre><code>&lt;textarea @keyup="test" class="protocol-paragraph" name="" id="" rows="10"&gt;{{ somedata }}&lt;/textarea&gt;
  
  
  methods: {
      test(){
          console.log('saving...');
      }
  }
  </code></pre>
  
  <p>do I need set custom counter with timestamps or is there an simple solution for this? if I just put timeout it will be called after 5 seconds on every keystroke</p>