From 605950bfdf221854b2b0fc4b875777891d90f34b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 15 Dec 2013 02:43:16 +0100 Subject: add @concurrent decorator for inline scripts, fixes #176 --- doc-src/scripting/inlinescripts.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc-src') diff --git a/doc-src/scripting/inlinescripts.html b/doc-src/scripting/inlinescripts.html index c9e188fc..19ae89a1 100644 --- a/doc-src/scripting/inlinescripts.html +++ b/doc-src/scripting/inlinescripts.html @@ -123,6 +123,13 @@ using pydoc (which is installed with Python by default), like this: +## Running scripts in parallel + +We have a single flow primitive, so when a script is handling something, other requests block. +While that's a very desirable behaviour under some circumstances, scripts can be run threaded by using the libmproxy.script.concurrent decorator. + +$!example("examples/nonblocking.py")!$ + ## Running scripts on saved flows Sometimes, we want to run a script on __Flow__ objects that are already -- cgit v1.2.3