taskit
taskit copied to clipboard
[Question] How to suspend/pause a worker?
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?