More streamlined interface with Pillar.

Using a semaphore to ensure requests to Pillar aren't too parallel,
so that we can cancel requests faster.
This commit is contained in:
2016-04-01 18:47:06 +02:00
parent 2c4c102302
commit 29230f09e7
3 changed files with 42 additions and 46 deletions

View File

@@ -313,6 +313,7 @@ class BlenderCloudBrowser(bpy.types.Operator):
return
# Signal that we want to stop.
self.async_task.cancel()
if not self.signalling_future.done():
self.log.info("Signalling that we want to cancel anything that's running.")
self.signalling_future.cancel()