thread_object.Resume Method

Resumes execution of a thread that was previously suspended.

thread_object.Resume()

Prerequisites

None

Parameters

None

Remarks

This method resumes the thread associated with the object, just as if a console Continue command were issued. The thread may have been stopped by the Suspend method, or by a break point, or by the console Break command.

If the thread is not suspended, this method does nothing.

Examples

Dim thread1 As New Thread(“Test”) ' Create a thread object to execute the
' procedure Test in the current project
thread1.Start() ' Start the thread
thread1.Suspend() ' Suspend the thread for now.
Thread.Sleep(1000) ' Wait for 1 second
thread1.Resume() ' Resume the thread

See Also

Thread Class |  thread_object.Suspend