FunctionUtil

@ApiStatus.Internal
class FunctionUtil

Function util

Functions

Link copied to clipboard
open fun <T> asSupplier(@NotNull t: T): @NotNull Supplier<T>
Makes constant value as supplier.
Link copied to clipboard
@NotNull
open fun throttleTick(@NotNull runnable: Runnable): Runnable
open fun <T, R> throttleTick(@NotNull function: (T) -> R): @NotNull (T) -> R
open fun <T> throttleTick(@NotNull predicate: Predicate<T>): @NotNull Predicate<T>
open fun <T> throttleTick(@NotNull supplier: Supplier<T>): @NotNull Supplier<T>
Throttles this function by tick