Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
function create_scheduled_callback_after(context: integer, ref_id: integer, delay_time: integer, repeatable_delay: integer?): rowid

Create a scheduled callback to be triggered at the specified time. When triggered the extendable functions are called with the provided context and ref_id.

Link copied to clipboard
function create_scheduled_callback_after_internal(context: integer, ref_id: integer, delay_time: integer, repeatable_delay: integer?): rowid
Link copied to clipboard
function create_scheduled_callback_at(context: integer, ref_id: integer, time: integer, repeatable_delay: integer?): rowid

Create a scheduled callback to be triggered at the specified time. When triggered the extendable functions are called with the provided context and ref_id.

Link copied to clipboard
function create_scheduled_callback_at_internal(context: integer, ref_id: integer, time: integer, repeatable_delay: integer?): rowid
Link copied to clipboard

Get the scheduled time for a callback to be executed.

Link copied to clipboard
@extendable function on_begin_block(height: integer)

Same as __begin_block but enables you to add multiple functions in a safer way.

Link copied to clipboard
@extendable function on_configuration_update()

If enabled to monitor for new configurations, this is called when a new configuration is detected.

Link copied to clipboard
@extendable function on_scheduled_callback(context: integer, ref_id: integer)

Function is called when a scheduled callback is triggered at a specific time.

Link copied to clipboard
@extendable function on_scheduled_callback_map(): map<integer, (integer) -> unit>

An alternative to on_scheduled_callback but with a context based map to only receive callbacks for specific contexts.

The map provided function takes ref_id as parameter.

Link copied to clipboard
function remove_scheduled_callback(context: integer, ref_id: integer)

Cancel and remove a scheduled callback.

Link copied to clipboard

Cancel and remove a scheduled callback.

Link copied to clipboard
Link copied to clipboard
function set_scheduled_callback_active(context: integer, ref_id: integer, active: boolean)

Activate or inactivate a scheduled callback. If inactivated (or paused) the callback will no longer be executed at the planned original time. Instead it will be paused until it is activated (or unpaused) and it will then be rescheduled to execute at the time it had left when paused, i.e. the total elapsed time of the callback is the same.

Link copied to clipboard
function set_scheduled_callback_active_internal(context: integer, ref_id: integer, active: boolean)

Operations

Link copied to clipboard
operation __begin_block(height: integer)