Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > forget (thread) |  |

forget (thread)

Syntax

    whichThread.forget()

Description

Multiuser Server server-side function; removes the given thread from the list of running threads. The thread may still be held in a variable, but it is no longer run.

Examples

These server-side statements assign the thread named `testThread` to the variable `gThread` and stop it from executing:

    global gThread
    gThread = thread("testThread")
    gThread.forget()

This server-side handler forgets all the threads in the thread list:

    on forgetAllThreads me
    	threadList = thread().list
    	repeat with t in threadList
    		t.forget()
    	end repeat
    end

See also

`lock()`, `unlock()`, `new (thread)`