runSynchronously(on:)
Run this job on the passed in executor.
Declaration
func runSynchronously(on executor: UnownedSerialExecutor)Parameters
- executor:
The executor this job will be semantically running on.
Discussion
This operation runs the job on the calling thread and blocks until the job completes. The intended use of this method is for an executor to determine when and where it wants to run the job and then call this method on it.
The passed in executor reference is used to establish the executor context for the job, and should be the same executor as the one semantically calling the runSynchronously method.