kennethreitz 9d594bde8a fix setup.py
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-02 19:45:17 -04:00
2017-09-02 19:36:30 -04:00
2017-09-02 19:35:26 -04:00
2017-09-02 19:41:34 -04:00
2017-09-02 19:45:17 -04:00

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.


Basic Usage
-----------

::

    import time

    import background

    @background.task
    def work():
        # Do something expensive here.
        time.sleep(10)


    for _ in range(100):
        work()


Advanced Usage
--------------

::

    import background

    # Use 40 background threads.
    background.n = 40


    @background.task
    def work():
        import time
        time.sleep(10)

    @background.callback
    def work_callback(future):
        print(future)


    for _ in range(100):
        work()
S
Description
No description provided
Readme 54 KiB
Languages
Python 100%