Thread.Resume does not resume

Xojo 2019r1, Mac. I have a thread, we’ll call it myThread. I run it, then suspend it before it’s finished. I want to resume it, to finish it. This doesn’t work:

myThread.Resume

The thread doesn’t resume. I tried this:

do until myThread.state = Thread.running myThread.Resume loop

Result of the above code: the thread starts up and then promptly suspends itself again.

Through trial and error, I found that this works:

myThread.Resume myThread.Sleep(1) myThread.Suspend myThread.Resume myThread.Sleep(1)

The above code does what myThread.resume is supposed to do.

Haven’t tested this on Windows.