LuaCoroutineLib class abstract

Abstract interface for Lua coroutine operations. Implements the coroutine library functionality.

Implementers

Constructors

LuaCoroutineLib()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearThreadWeakRef() → void
Clears weak references to dead threads.
debugThread() → String
Returns debug information about all threads.
getCurrentNResults() → int
Gets the number of expected results for current closure.
getStatus() → ThreadStatus
Gets the current thread status.
newThread() → LuaState
Creates a new thread (coroutine) that shares the global environment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
popObject() → Object?
Pops and returns the top value from the stack as a Dart object.
popStackFrame() → void
Pops the top stack frame (used after yield is caught).
pushThread(LuaState L) → void
Pushes a thread onto the stack.
resetTopClosureNResults(int nResults) → void
Resets the expected number of results for the top closure.
resume(int nArgs) → void
Resumes a suspended coroutine.
runningId() → int
Returns the unique ID of this thread.
setStatus(ThreadStatus status) → void
Sets the thread status.
toString() → String
A string representation of this object.
inherited
toThread(int idx) → LuaState?
Converts the value at the given index to a Lua thread (coroutine). Returns null if the value is not a thread.
traceStack() → String
Returns a stack trace for debugging.
xmove(LuaState from, int n) → void
Moves n values from one state to another. Pops the values from 'from' and pushes them to this state.

Operators

operator ==(Object other) → bool
The equality operator.
inherited