Hi All. I have gone through the Job documentations:
The consuming variant of Job is only available from iOS 17+, for earlier versions the Job being passed to executor is of type UnownedJob. Does the lifetime of this type follow the same lifetime as the consuming equivalent? i.e. the Job is alive till it is executed once? Is it safe to save the job of this type and differ the execution after certain asynchronous condition is satisfied, i.e network call completed?
The UnownedJob has the same semantics as ExecutorJob, just that it is unsafe in the sense that the type system does not help you with the “run it just once”. If you run it twice you’ll cause undefined behavior (bad bad things).