Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0afc818f
Commit
0afc818f
authored
Jun 25, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos.
Add an index entry.
parent
a9c94cd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Doc/lib/libsched.tex
Doc/lib/libsched.tex
+5
-5
No files found.
Doc/lib/libsched.tex
View file @
0afc818f
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
\modulesynopsis
{
General purpose event scheduler.
}
\modulesynopsis
{
General purpose event scheduler.
}
The
\module
{
sched
}
module defines a class which implements a general
The
\module
{
sched
}
module defines a class which implements a general
purpose event scheduler:
purpose event scheduler:
\index
{
event scheduling
}
\begin{classdesc}
{
scheduler
}{
timefunc, delayfunc
}
\begin{classdesc}
{
scheduler
}{
timefunc, delayfunc
}
The
\class
{
scheduler
}
class defines a generic interface to scheduling
The
\class
{
scheduler
}
class defines a generic interface to scheduling
events. It needs two functions to actually deal with the ``outside world''
events. It needs two functions to actually deal with the ``outside world''
---
\var
{
timefunc
}
should be callable without arguments, and return
---
\var
{
timefunc
}
should be callable without arguments, and return
a number (the ``time'', in any units whatsoever). The
\var
{
delayfunc
}
a number (the ``time'', in any units whatsoever).
The
\var
{
delayfunc
}
function should be callable with one argument, compatible with the output
function should be callable with one argument, compatible with the output
of
\var
{
timefunc
}
, and should delay that many time units.
of
\var
{
timefunc
}
, and should delay that many time units.
\var
{
delayfunc
}
will also be called with the argument
\code
{
0
}
after
\var
{
delayfunc
}
will also be called with the argument
\code
{
0
}
after
...
@@ -43,9 +43,9 @@ From print_time 930343700.273
...
@@ -43,9 +43,9 @@ From print_time 930343700.273
\end{verbatim}
\end{verbatim}
\subsection
{
Schedule
Objects
\label
{
schedule
-objects
}}
\subsection
{
Schedule
r Objects
\label
{
scheduler
-objects
}}
\class
{
sch
dule
}
instances have the following methods:
\class
{
sch
eduler
}
instances have the following methods:
\begin{methoddesc}
{
enterabs
}{
time, priority, action, argument
}
\begin{methoddesc}
{
enterabs
}{
time, priority, action, argument
}
Schedule a new event. The
\var
{
time
}
argument should be a numeric type
Schedule a new event. The
\var
{
time
}
argument should be a numeric type
...
@@ -74,7 +74,7 @@ currently in the queue, this method will raise a
...
@@ -74,7 +74,7 @@ currently in the queue, this method will raise a
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
empty
}{}
\begin{methoddesc}
{
empty
}{}
Check whether there are no scheduled events
.
Return true if the event queue is empty
.
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
run
}{}
\begin{methoddesc}
{
run
}{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment