Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
14ae4b48
Kaydet (Commit)
14ae4b48
authored
Haz 25, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some typos.
Add an index entry.
üst
c4e3bf9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libsched.tex
Doc/lib/libsched.tex
+5
-5
No files found.
Doc/lib/libsched.tex
Dosyayı görüntüle @
14ae4b48
...
@@ -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