code: def schedCoroSafePend(self, coro):
          '''
          Schedules a coroutine to run as soon as possible on the same event loop that this Base is running on
  
          Note:
              This method may *not* be run inside an event loop
          '''
          if __debug__:
              import synapse.lib.threads as s_threads  # avoid import cycle
              assert s_threads.iden() != self.tid
  
          task = asyncio.run_coroutine_threadsafe(coro, self.loop)
          return task.result(f schedCoroSafePend(self, coro):
          '''
          Schedules a coroutine to run as soon as possible on the same event loop that this Base is running on
  
          Note:
              This method may *not* be run inside an event loop
          '''
          if __debug__:
              import synapse.lib.threads as s_threads  # avoid import cycle
              assert s_threads.iden() != self.tid
  
          task = asyncio.run_coroutine_threadsafe(coro, self.loop)
          return task.result()
docs: Schedules a coroutine to run as soon as possible on the same event loop that this Base is running on
  
          Note:
              This method may *not* be run inside an event loop