task

@Nullable
abstract fun task(@NotNull runnable: @NotNull Runnable): @Nullable ModelTask

Schedules a task to run on the next tick.

Return

the scheduled task, or null if scheduling failed

Since

2.0.0

Parameters

runnable

the task to run