Skip to content

rq.SpawnHandle ​

What rq.spawn returns, to follow or stop the job.

Fields ​

NameTypeDescription
donebooleantrue once the job has ended, by returning, by an error or by cancel.
ok (optional)booleanOnce done: true when the function returned, false on an error or a cancel.
value (optional)anyOnce done and ok: the first value the function returned.
values (optional)tableOnce done and ok: every value it returned, with n their count.
error (optional)anyOnce done and not ok: the error, or "cancelled".
cancelfun()Stops the job at its next wait; it never runs again. Does nothing once it is done.

Used by ​

rq.spawn