kettle

Kotlin utilities for Quilt mod development


Project maintained by Cypher121 Hosted on GitHub Pages — Theme by mattgraham

//kettle/coffee.cypher.kettle.scheduler/ExecutionConfiguration/Companion

Companion

[jvm]
object Companion

Functions

Name Summary
infinite [jvm]
fun infinite(initialDelay: Int = 0, pause: Int = 1, yieldsAfterMs: Double = 50.0): ExecutionConfiguration
Creates an ExecutionConfiguration for a task that will execute infinitely after initialDelay ticks, pauses for pause ticks after each execution and yields after executing for at least yieldsAfterMs milliseconds.
once [jvm]
fun once(initialDelay: Int = 0, yieldsAfterMs: Double = 50.0): ExecutionConfiguration
Creates an ExecutionConfiguration for a task that will execute once after initialDelay ticks and yields after executing for at least yieldsAfterMs milliseconds.
repeat [jvm]
fun repeat(initialDelay: Int = 0, pause: Int = 1, times: Int = 1, yieldsAfterMs: Double = 50.0): ExecutionConfiguration
Creates an ExecutionConfiguration for a task that will execute specified number of times times after initialDelay ticks, pauses for pause ticks after each execution and yields after executing for at least yieldsAfterMs milliseconds.