<div class="meta" robots="noindex">

</div>

Method

# Thread.Suspend

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Thread.Pause<thread.pause>` as a replacement.

</div>

## Description

Puts the thread in a suspended state. Every call to <span class="title-ref">Suspend</span> must be matched by a call to Resume.

## Notes

The thread will not be allocated any processing cycles, regardless of its assigned *Priority*. It is “asleep.” To wake it up, call the Resume method. If the thread is executing when you call <span class="title-ref">Suspend</span>, it will immediately cause a context switch.

## Sample code

This example calls <span class="title-ref">Suspend</span>, followed by a call to Resume after other code has executed.

``` xojo
LongProcessThread1.Suspend
' do something else here...
LongProcessThread1.Resume
```

## Compatibility

All project types on all supported operating systems.
