From 511f782c78e285cb337a1dd2b0b6cbaf602c1e91 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 2 Sep 2017 17:44:57 -0400 Subject: [PATCH] seems like a good idea Signed-off-by: Kenneth Reitz --- README.md | 1 - README.rst | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) delete mode 100644 README.md create mode 100644 README.rst diff --git a/README.md b/README.md deleted file mode 100644 index 1c3a99b..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# background diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..aaa03c0 --- /dev/null +++ b/README.rst @@ -0,0 +1,24 @@ +background: does what it says it does +===================================== + +This module makes it stupidly simple to run things in the background of your +application, be it a CLI app, or a web app. + +Work in progress. + + +Usage +----- + +import time + +import background + +@background.task +def work(): + # Do something expensive here. + time.sleep(10) + + +for _ in range(100): + work() \ No newline at end of file