portage.util._async.SchedulerInterface module

class portage.util._async.SchedulerInterface.SchedulerInterface(event_loop, is_background=None, **kwargs)

Bases: portage.util.SlotObject.SlotObject

_asyncio_child_watcher
_asyncio_wrapper
_event_loop
_event_loop_attrs = ('add_reader', 'add_writer', 'call_at', 'call_exception_handler', 'call_later', 'call_soon', 'call_soon_threadsafe', 'close', 'create_future', 'default_exception_handler', 'get_debug', 'is_closed', 'is_running', 'remove_reader', 'remove_writer', 'run_in_executor', 'run_until_complete', 'set_debug', 'time', '_asyncio_child_watcher', '_asyncio_wrapper')
_is_background
static _return_false()
add_reader
add_writer
async async_output(msg, log_file=None, background=None, level=0, noiselevel=- 1)

Output a msg to stdio (if not in background) and to a log file if provided.

Parameters
  • msg (str) – a message string, including newline if appropriate

  • log_file (file) – log file in binary mode

  • background (bool) – send messages only to log (not to stdio)

  • level (int) – a numeric logging level (see the logging module)

  • noiselevel (int) – passed directly to writemsg

call_at
call_exception_handler
call_later
call_soon
call_soon_threadsafe
close
copy()

Create a new instance and copy all attributes defined from __slots__ (including those from inherited classes).

create_future
default_exception_handler
get_debug
is_closed
is_running
output(msg, log_path=None, background=None, level=0, noiselevel=- 1)

Output msg to stdout if not self._is_background(). If log_path is not None then append msg to the log (appends with compression if the filename extension of log_path corresponds to a supported compression type).

remove_reader
remove_writer
run_in_executor
run_until_complete
set_debug
time