Basics
Guides
API Reference
Basics
Guides
API Reference
[22:6] static extends: object
Defines the state of the thread. One of these should be returned from getThreadState.
[164:14] (extern: com.lehman.aussom.stdlib.AussomTimer) extends: object
The timer class implements timer functionality.
timer (int TimeMills, callback OnTimeOut)
The timer constructor takes a few arguments and creates a new timer object.
TimeMills is the number of milliseconds for the timer.OnTimeOut is a callback with the function to call when the timer ends.This object.newTimer (int TimeMills, callback OnTimeOut)
start ()
Starts the timer to run only once.
This object.startInterval ()
Starts the timer running constantly.
This object.stop ()
Stops the timer.
This object.restart ()
Restarts the timer.
This object.setDuration (int TimeMills)
Sets the timer duration in milliseconds.
TimeMills is an int with the duration in milliseconds.This object.getDuration ()
Gets the timer duration.
An int with the duration in milliseconds.[34:14] (extern: com.lehman.aussom.stdlib.AussomThread) extends: object
The thread class implements threading functionality.
setOnRun (callback Callback)
Sets the on run callback function.
Callback is the function to be called on run.This object.startThread ()
Starts the thread.
This object.sleep (int MillsToWait = 0)
Sleeps the provided number of milliseconds.
MillsToWait is an int with the number of milliseconds to wait.This object.interrupt ()
Interrupts the thread.
This object.setPriority (int Priority = 5)
Sets the priority of the thread.
Priority is an int with the priority to set.This object.setName (string Name)
Sets the thread name.
Name is a string to set for the thread name.This object.setDaemon (bool SetDaemon = true)
Sets the thread as a daemon or not with the provided flag. This function with throw an exception if the thread is already alive.
SetDaemon is a bool with the flag.This object.start ()
Starts the thread.
This object.run ()
Implemented just as a place holder. This function needs to be overridden by your implementation.
isInterrupted ()
Gets the is interrupted flag.
A bool with is interrupted.isAlive ()
Gets the is alive flag.
A bool with the is alive flag.getPriority ()
Gets the thread priority.
An int with the priority.join (int MillsToWait = 0)
Joins the thread with the number of milliseconds to wait for the thread to die. 0 means wait forever.
MillsToWait is an int with the millseconds to wait.This object.isDaemon ()
Gets the is daemon flag.
A bool with the is daemon flag.toString ()
Returns the Java representation of the thread. (See Thread.toString())
A string with the thread info.getId ()
Gets the thread ID.
An int with the thread ID.getThreadState ()
Gets the thread state.
A string with the thread state. See the threadState enum for available values.getOnRun ()
Gets the on run function.
A callback with the on run function.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.