Skip to content

Commit 78f9268

Browse files
committedJun 4, 2015
worker: add note about correct use of close()
1 parent d730066 commit 78f9268

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎artiq/master/worker.py

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ def _create_process(self):
7575

7676
@asyncio.coroutine
7777
def close(self):
78+
"""Interrupts any I/O with the worker process and terminates the
79+
worker process.
80+
81+
This method should always be called by the user to clean up, even if
82+
prepare() raises an exception."""
7883
self.closed.set()
7984
yield from self.io_lock.acquire()
8085
try:

0 commit comments

Comments
 (0)
Please sign in to comment.