MCPcopy Index your code
hub / github.com/RustPython/RustPython / 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 11

mainFunction · 0.45
evalFunction · 0.45
bench_rustpython_codeFunction · 0.45
bench_rustpython_codeFunction · 0.45
test_run_scriptFunction · 0.45
py_mainFunction · 0.45
py_mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 1

enterabsMethod · 0.95

Tested by 1

test_run_scriptFunction · 0.36