taskit icon indicating copy to clipboard operation
taskit copied to clipboard

[Question] How to suspend/pause a worker?

Open labordep opened this issue 4 months ago • 3 comments

Hi, I'm trying to replace my old "fork" stuff with TaskIt. I cannot find how to suspend a worker, for example I have this code:

thread := [ "blabla" ] fork.
"...."
thread suspend.
"...."
thread resume.

I'm using TKTWorker new to replace fork but there is no way to pause/resume :/

This code don't work:

thread := TKTWorker new.
thread schedule:[ "blabla" ].
thread start.
"..."
thread stop.
"..."
thread start. "here my thread is not restarted

Any solution?

labordep avatar Oct 08 '24 14:10 labordep