Saturday, February 18, 2017

Reschedule a timer?

Hi!

Is there a way to reschedule/delay a timer. Something like:

let t = timer_start(1000, 'DoSomething')

Then after, say, 500ms:

call timer_reschedule(1000)

Then wait another 1000ms for DoSomething to be called.

I could of course stop the old and start a new timer but I guess this would waste resources and be quite inefficient if being done very often.

Regards

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment