Class TickDelayService


  • @Singleton
    public final class TickDelayService
    extends java.lang.Object
    Non-blocking, game-tick aligned delays. A handle is polled by plugin code from its game-tick callback; this service never sleeps or owns a thread.
    • Constructor Summary

      Constructors 
      Constructor Description
      TickDelayService​(net.runelite.api.Client client)  
    • Constructor Detail

      • TickDelayService

        @Inject
        public TickDelayService​(net.runelite.api.Client client)
    • Method Detail

      • after

        public TickDelayService.Handle after​(int ticks)
        Create a handle that becomes ready after ticks game ticks.
      • afterTicks

        public TickDelayService.Handle afterTicks​(int ticks)
        Explicit alias for callers that prefer the unit in the method name.