rados.py: add docstrings for Ioctx::__aio_*_cb()

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-04-08 10:48:55 +02:00
parent 203915cf38
commit 1734742b2c

View File

@ -646,6 +646,9 @@ class Ioctx(object):
self.close()
def __aio_safe_cb(self, completion, _):
"""
Callback to onsafe() for asynchronous operations
"""
cb = None
with self.lock:
cb = self.safe_cbs[completion]
@ -654,6 +657,9 @@ class Ioctx(object):
return 0
def __aio_complete_cb(self, completion, _):
"""
Callback to oncomplete() for asynchronous operations
"""
cb = None
with self.lock:
cb = self.complete_cbs[completion]