MCPcopy Index your code
hub / github.com/python/cpython / enter

Method enter

Lib/sched.py:78–85  ·  view source on GitHub ↗

A variant that specifies the time as a relative time. This is actually the more commonly used interface.

(self, delay, priority, action, argument=(), kwargs=_sentinel)

Source from the content-addressed store, hash-verified

76 return event # The ID
77
78 def enter(self, delay, priority, action, argument=(), kwargs=_sentinel):
79 """A variant that specifies the time as a relative time.
80
81 This is actually the more commonly used interface.
82
83 """
84 time = self.timefunc() + delay
85 return self.enterabs(time, priority, action, argument, kwargs)
86
87 def cancel(self, event):
88 """Remove an event from the queue.

Callers

nothing calls this directly

Calls 1

enterabsMethod · 0.95

Tested by

no test coverage detected