parameters: (
          self, buff: "Buffer", document: Document
      )
return_statement: return await run_in_executor_with_context(run_get_suggestion_thread)
docstring: Run the `get_suggestion` function in a thread.
docstring_summary: Run the `get_suggestion` function in a thread.
docstring_tokens: Run the get_suggestion function in a thread .
function: async def get_suggestion_async(
          self, buff: "Buffer", document: Document
      ) -> Optional[Suggestion]:
          """
          Run the `get_suggestion` function in a thread.
          """
  
          def run_get_suggestion_thread() -> Optional[Suggestion]:
              return self.get_suggestion(buff, document)
  
          return await run_in_executor_with_context(run_get_suggestion_thread)
function_tokens: async def get_suggestion_async ( self , buff : "Buffer" , document : Document ) -> Optional [ Suggestion ] : def run_get_suggestion_thread ( ) -> Optional [ Suggestion ] : return self . get_suggestion ( buff , document ) return await run_in_executor_with_context ( run_get_suggestion_thread )