summaryrefslogtreecommitdiffstats
path: root/docs/write_hooks.rst
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:39:12 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 02:39:12 +0200
commit9fe0a213ba7c639185ac8ee7ce6516f02bbe13c1 (patch)
treef454030fbe8d1780c529e56f8e7526e8d7cb8520 /docs/write_hooks.rst
parentFix class definition (diff)
downloadpyload-9fe0a213ba7c639185ac8ee7ce6516f02bbe13c1.tar.xz
Removed __threaded__ attribute
Diffstat (limited to 'docs/write_hooks.rst')
-rw-r--r--docs/write_hooks.rst4
1 files changed, 0 insertions, 4 deletions
diff --git a/docs/write_hooks.rst b/docs/write_hooks.rst
index 351b9af39..a088a3ed3 100644
--- a/docs/write_hooks.rst
+++ b/docs/write_hooks.rst
@@ -23,7 +23,6 @@ All Hooks should start with something like this: ::
__version__ = "0.1"
__description__ = "Does really cool stuff"
__config__ = [ ("activated" , "bool" , "Activated" , "True" ) ]
- __threaded__ = ["downloadFinished"]
__author_name__ = ("Me")
__author_mail__ = ("me@has-no-mail.com")
@@ -65,9 +64,6 @@ A basic excerpt would look like: ::
def downloadFinished(self, pyfile):
print "A Download just finished."
-Another important feature to mention can be seen at the ``__threaded__`` parameter. Function names listed will be executed
-in a thread, in order to not block the main thread. This should be used for all kind of longer processing tasks.
-
Another and more flexible and powerful way is to use event listener.
All hook methods exists as event and very useful additional events are dispatched by the core. For a little overview look
at :class:`HookManager <module.HookManager.HookManager>`. Keep in mind that you can define own events and other people may listen on them.