(self, index, delay=0.25, writerargs=None)
:param index: the :class:`whoosh.index.Index` to write to.
        :param delay: the delay (in seconds) between attempts to instantiate
            the actual writer.
        :param writerargs: an optional dictionary specifying keyword arguments
            to to be passed to the index's ``writer()`` method.
:param index: the :class:`whoosh.index.Index` to write to.
        :param delay: the delay (in seconds) between attempts to instantiate
            the actual writer.
        :param writerargs: an optional dictionary specifying keyword arguments
            to to be passed to the index's ``writer()`` method.
: param index : the : class : whoosh . index . Index to write to . : param delay : the delay ( in seconds ) between attempts to instantiate the actual writer . : param writerargs : an optional dictionary specifying keyword arguments to to be passed to the index s writer () method .
def __init__(self, index, delay=0.25, writerargs=None):
        """
        :param index: the :class:`whoosh.index.Index` to write to.
        :param delay: the delay (in seconds) between attempts to instantiate
            the actual writer.
        :param writerargs: an optional dictionary specifying keyword arguments
            to to be passed to the index's ``writer()`` method.
        """

        threading.Thread.__init__(self)
        self.running = False
        self.index = index
        self.writerargs = writerargs or {}
        self.delay = delay
        self.events = []
        try:
            self.writer = self.index.writer(**self.writerargs)
        except LockError:
            self.writer = None
def __init__ ( self , index , delay = 0.25 , writerargs = None ) : threading . Thread . __init__ ( self ) self . running = False self . index = index self . writerargs = writerargs or { } self . delay = delay self . events = [ ] try : self . writer = self . index . writer ( * * self . writerargs ) except LockError : self . writer = None