prettymuchbryce / easystarjs

An asynchronous A* pathfinding API written in Javascript.
MIT License
1.9k stars 165 forks source link

Is there a way to abort a searching task ? #65

Closed xjay111 closed 5 years ago

xjay111 commented 6 years ago

Sometimes i want to abort a searching task , how can i do that?

Strikeeaglechase commented 5 years ago

Save the search id then cancel the task Example: var instanceId = easystar.findPath(startX, startY, endX, endY, callback); easystar.cancelPath(instanceId);

xjay111 commented 5 years ago

Thanks fir resonse . Already fix that .