mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-29 14:55:59 +00:00
Better docs for QueueMixin.stop
This commit is contained in:
parent
049a535048
commit
7d2827b93d
@ -644,12 +644,16 @@ class QueueMixin(HookMixin):
|
||||
return extend_filepath(self._local_filepath, relpath_u.split(u"/"))
|
||||
|
||||
def stop(self):
|
||||
"""
|
||||
Don't process queued items anymore.
|
||||
|
||||
:return Deferred: A ``Deferred`` that fires when processing has
|
||||
completely stopped.
|
||||
"""
|
||||
d = self._processing
|
||||
# Speed up shutdown
|
||||
self._processing_loop.stop()
|
||||
self._processing = None
|
||||
self._processing_loop = None
|
||||
# wait for processing loop to actually exit
|
||||
return d
|
||||
|
||||
def _begin_processing(self, res):
|
||||
|
Loading…
x
Reference in New Issue
Block a user