MCPcopy Create free account
hub / github.com/ipython/ipython / sleeper

Function sleeper

IPython/lib/tests/test_backgroundjobs.py:32–37  ·  view source on GitHub ↗
(interval=t_short, *a, **kw)

Source from the content-addressed store, hash-verified

30# Local utilities
31#-----------------------------------------------------------------------------
32def sleeper(interval=t_short, *a, **kw):
33 args = dict(interval=interval,
34 other_args=a,
35 kw_args=kw)
36 time.sleep(interval)
37 return args
38
39def crasher(interval=t_short, *a, **kw):
40 time.sleep(interval)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected