MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / event_loops.py

File event_loops.py

examples/event_loops.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/env python
2"""A sample application for integrating cmd2 with external event loops.
3
4This is an example of how to use cmd2 in a way so that cmd2 doesn't own the inner event loop of your application.

Callers

nothing calls this directly

Calls 4

Cmd2EventBasedClass · 0.85
preloopMethod · 0.80
onecmd_plus_hooksMethod · 0.80
postloopMethod · 0.45

Tested by

no test coverage detected