class_docstr: Event loop for posix systems (Linux, Mac os X).
code: def close(self):
      self.closed = True
  
      # Close pipes.
      schedule_pipe = self._schedule_pipe
      self._schedule_pipe = None
  
      if schedule_pipe:
          os.close(schedule_pipe[0])
          os.close(schedule_pipe[1])
  
      if self._inputhook_context:
          self._inputhook_context.close()
  
imports: from __future__ import unicode_literals
  import fcntl
  import os
  import signal
  import threading
  import time
  from prompt_toolkit.terminal.vt100_input import InputStream
  from prompt_toolkit.utils import DummyContext, in_main_thread
  from prompt_toolkit.input import Input
  from .base import EventLoop, INPUT_TIMEOUT
  from .callbacks import EventLoopCallbacks
  from .inputhook import InputHookContext
  from .posix_utils import PosixStdinReader
  from .utils import TimeIt
  from .select import AutoSelector, Selector, fd_to_int
label_desc: Use image node_id 8 for calling the PosixEventLoop obj's underlying member method code with example usage: obj.close() without return types