neko.vm.Thread
type
class
available in
neko
Static Methods
create
(callb :
Void
->
Void
) :
Thread
Creates a new thread that will execute the
callb
function, then exit.
current
() :
Thread
Returns the current thread.
readMessage
(block :
Bool
) :
Dynamic
Reads a message from the thread queue. If
block
is true, the function blocks until a message is available. If
block
is false, the function returns
null
if no message is available.
Constructor
new
(h :
ThreadHandle
)
Instance Methods
sendMessage
(msg :
Dynamic
) :
Void
Send a message to the thread queue. This message can be readed by using
readMessage
.
callbfunction, then exit.