coroutineTask

inline fun coroutineTask(sync: Boolean = true, howOften: Long = 1, period: Long = 0, delay: Long = 0, crossinline task: suspend CoroutineScope.(task: CoroutineTask) -> Unit): Job(source)

Deprecated

Use mcCoroutineTask instead and change the duration parameters type from Long to Duration.

Replace with

mcCoroutineTask(sync = sync, howOften = howOften, period = period.milliseconds, delay = delay.milliseconds) { task.invoke() }