Skip to content

hitokage

bar

barlib

Represents the bar module

debug

function hitokage.debug(...any)

Output debug message to rust runtime

dispatch

function hitokage.dispatch(thread_or_threads: table<number, thread>|thread)
  -> nil

Add a coroutine to the hitokage event loop.

All coroutines are run, then we buffer until 100ms has passed since the start of the first coroutine.

error

function hitokage.error(...any)

Output error message to rust runtime

info

function hitokage.info(...any)

Output info message to rust runtime

monitor

monitorlib

Represents the monitor module

sleep_ms

function hitokage.sleep_ms(ms: number)

Sleep function in milliseconds

@param ms — Amount of time to sleep.

subscribe

function hitokage.subscribe(name: 'komorebi', callback: fun(notification: KomorebiNotification))
  -> nil
name:
    | 'komorebi'

timeout

function hitokage.timeout(timeout: number, action: function)
  -> thread

unstable

Unsafe

Represents the unstable module. Either it is experimental code that is exposed for testing purposes for user feedback, or contains code that uses unsafe rust, which can cause crashes.