Built-in accessors
There are several built-in accessors for the variable types that are available.
name | variable type | accessor type | description |
---|---|---|---|
length | string | property | returns the length of the string, in bytes |
char. at | string | index | returns the character from the specified position |
apply | SGS/C function | property | function that allows to specify "this" & arg. array |
was_aborted | thread | property | returns if thread was aborted |
not_started | thread | property | returns if coroutine was not started yet |
running | thread | property | returns if thread is currently running |
can_resume | thread | property | returns if thread is not finished (can be resumed) |
end_on | thread | property | function that can specify an event to end the thread |
resume | thread | property | function that can resume the thread (see co_resume) |
abort | thread | property | function that can abort the thread (see abort) |