Package net.axay.kspigot.runnables

Types

ChainedRunnablePart
Link copied to clipboard
abstract class ChainedRunnablePart<T, R>(sync: Boolean)
ChainedRunnablePartFirst
Link copied to clipboard
class ChainedRunnablePartFirst<R>(runnable: () -> R, sync: Boolean) : ChainedRunnablePart<Unit, R>
ChainedRunnablePartThen
Link copied to clipboard
class ChainedRunnablePartThen<T, R>(runnable: (T) -> R, sync: Boolean, previous: ChainedRunnablePart<*, T>) : ChainedRunnablePart<T, R>
KSpigotRunnable
Link copied to clipboard
abstract class KSpigotRunnable(counterUp: Long?, counterDownToOne: Long?, counterDownToZero: Long?) : BukkitRunnable

Functions

async
Link copied to clipboard

Starts an asynchronous task.

fun async(runnable: () -> Unit): BukkitTask
firstAsync
Link copied to clipboard
fun <R> firstAsync(runnable: () -> R): ChainedRunnablePartFirst<R>
firstDo
Link copied to clipboard
fun <R> firstDo(sync: Boolean, runnable: () -> R): ChainedRunnablePartFirst<R>
firstSync
Link copied to clipboard
fun <R> firstSync(runnable: () -> R): ChainedRunnablePartFirst<R>
sync
Link copied to clipboard

Starts a synchronous task.

fun sync(runnable: () -> Unit): BukkitTask
task
Link copied to clipboard

Starts a new BukkitRunnable.

fun task(sync: Boolean, delay: Long, period: Long?, howOften: Long?, safe: Boolean, endCallback: () -> Unit?, runnable: (KSpigotRunnable) -> Unit?)
thenAsync
Link copied to clipboard
fun <T, R, U> ChainedRunnablePart<T, R>.thenAsync(runnable: (R) -> U): ChainedRunnablePartThen<R, U>
thenDo
Link copied to clipboard
fun <T, R, U> ChainedRunnablePart<T, R>.thenDo(sync: Boolean, runnable: (R) -> U): ChainedRunnablePartThen<R, U>
thenSync
Link copied to clipboard
fun <T, R, U> ChainedRunnablePart<T, R>.thenSync(runnable: (R) -> U): ChainedRunnablePartThen<R, U>