0.0.1 docs





    Jan 9, 2012

    josh rotenberg
    albany, ca

    Index of all namespaces

    « Project + dependencies

    A Parallel while-loop Task Manager Library

    This is a simple task manager, basically a way to manage multiple
    long running functions in a future. In some situations, using a scheduling
    model like ScheduledThreadPoolExecutors is the right way to go, but
    for my purposes I wanted the sleep timing of each iteration to be handled
    internally by the function, not by the scheduler itself. While it is possible
    to just run the scheduler at a really fast interval, it feels kind of wrong.
    This little module lets you create, start, stop and remove tasks in a
    reasonably generic way, the only impositions being a) the task is run in
    an infinite-until-stopped loop and b) the task is run in a future.