You don't need to deal with job pointers in your result handlers any more - just get the job result as a C++ object, either via JobHandle::responseFuture() or as a parameter passed to the continuation function. JobHandle will retrieve all the results for you, and you don't need to think whether you should copy or move them, whether the job should be const or not etc.
JobHandle::responseFuture()
or as a parameter passed to the continuation function.JobHandle
will retrieve all the results for you, and you don't need to think whether you should copy or move them, whether the job should beconst
or not etc.