class_docstr: Wrapper that runs auto suggestions in a thread.
  (Use this to prevent the user interface from becoming unresponsive if the
  generation of suggestions takes too much time.)
class_docstr_tok: ["Wrapper","that","runs","auto","suggestions","in","a","thread",".","(","Use","this","to","prevent","the","user","interface","from","becoming","unresponsive","if","the","generation","of","suggestions","takes","too","much","time",".",")"]
code: def __init__(self, auto_suggest: AutoSuggest) -> None:
      self.auto_suggest = auto_suggest
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.eventloop import run_in_executor_with_context
  from .document import Document
  from .filters import Filter, to_filter
label_desc: Use image node_id 1 to create a new ThreadedAutoSuggest object from inherited base classes: AutoSuggest with example: obj = ThreadedAutoSuggest(auto_suggest)