Starts a new job and returns a JobExecution.
Starts a new job and returns a JobExecution. The JobExecution.result future must be completed when the job execution is finished.
This method (run
) should not "block", all the work must be performed
by the returned JobExecution
.
A Job that runs the given actor (creates a new actor instance).
The actor must: $ -
stop()
itself (e.g. viaActorContext.stop
once it's finished $ - handle ActorJob.Cancel andstop
itself when it received this message