If this function is called and the job hasn't completed yet, the job is cancelled.
The promise returning the (partial) path that as found or null if cancelled.
The result of the pathfinding job. Undefined while the search is in progress, null if the job was cancelled, and the (partial) path if the job completed.
If this function is called and the job hasn't completed yet, the job is cancelled.