setAutomaticExecution

abstract suspend fun setAutomaticExecution(newAutomaticExecution: Int): Function

Sets the automatic execution frequency, or disables it with 0.

Return

the updated Function instance

Parameters

newAutomaticExecution

new automatic execution frequency, in ticks (0..18000)

Throws

if newAutomaticExecution is out of acceptable range