5. Misc

5.1. Threads

haka.current_thread()

Returns the thread current unique index.

5.2. Exit

haka.on_exit(exit_func)

Runs exit_func code at haka exit.