-
Notifications
You must be signed in to change notification settings - Fork 2
Thread
Andrew Kvapil edited this page Nov 16, 2015
·
4 revisions
The thread class is a wrapper for coroutines, designed for use with the multitasking aspect of Application.
Thread( string f, ... )
Thread( function f, ... )vararg (...) are the arguments to initialise the thread with.
Thread.running - boolean
Whether the thread is running. Equals to false if the thread has finished or has been stopped.
Thread:stop()Stops the thread from running.
Thread:restart()Starts the thread again.
Thread:resume( string event, ... )Resumes the coroutine of the thread. Used to pass events to threads.
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException