crawly icon indicating copy to clipboard operation
crawly copied to clipboard

Adds Crawly.Engine.stop_all_spiders/0

Open Ziinc opened this issue 4 years ago • 1 comments

For #37 , builds on #104

Ziinc avatar May 18 '20 08:05 Ziinc

Made all tests pass, the stop_all_spiders function just delegates to the existing stop_spider/2 function.

I also shifted down the on_spider_closed_callback execution position to be within the genserver call handler, so that we only execute the callback if the spider was closed (and not if the spider was not running and was not "closed" by the engine).

Ziinc avatar Nov 02 '20 05:11 Ziinc