change README.md

This commit is contained in:
2020-11-02 18:02:38 +01:00
parent 2ddcd16acd
commit ad235aba31

View File

@@ -35,8 +35,9 @@ pyinotifyd comes with different schedulers to schedule tasks with an optional de
### TaskScheduler
This scheduler is used to run Python functions.
class TaskScheduler(*job, delay=0, files=True, dirs=False, logname="TaskScheduler"*)
Return a TaskScheduler object configured to call the Python function *job* with a delay of *delay* seconds. Use *files* and *dirs* to define if *job* is called for events on files and/or directories. Log messages with *logname*.
<div class="bg-yellow">class **TaskScheduler**(*job, delay=0, files=True, dirs=False, logname="TaskScheduler"*)</div>
Return a **TaskScheduler** object configured to call the Python function *job* with a delay of *delay* seconds. Use *files* and *dirs* to define if *job* is called for events on files and/or directories. Log messages with *logname*.
### ShellScheduler