Do you need to cancel your repeating tasks?

Discussion in 'Plugin Development' started by danielh112, Mar 3, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    danielh112

    In my plugin I have repeating tasks which are rerun multiple times do I need to cancel these? Or is it better to just leave them running in the background?
     
  2. Offline

    moose517

    well after they are run multiple times if your done then yes you should cancel them. but if they need to keep repeating then obviously not.
     
  3. Offline

    Barinade

    As with the above poster, use runTaskLater when it's more efficient. This runs code on a delay, rather than a repeating task (runs once after x amount of time)
     
Thread Status:
Not open for further replies.

Share This Page