Package net.openosrs.api.service.delay
Class TickDelayService
- java.lang.Object
-
- net.openosrs.api.service.delay.TickDelayService
-
@Singleton public final class TickDelayService extends java.lang.ObjectNon-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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTickDelayService.Handle
-
Constructor Summary
Constructors Constructor Description TickDelayService(net.runelite.api.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TickDelayService.Handleafter(int ticks)Create a handle that becomes ready afterticksgame ticks.TickDelayService.HandleafterTicks(int ticks)Explicit alias for callers that prefer the unit in the method name.
-
-
-
Method Detail
-
after
public TickDelayService.Handle after(int ticks)
Create a handle that becomes ready afterticksgame ticks.
-
afterTicks
public TickDelayService.Handle afterTicks(int ticks)
Explicit alias for callers that prefer the unit in the method name.
-
-