| Wrap a generator function to return a new Taskeach time it's called    Usage:
 
        def someMethod(self, whatever):
            yield whatever; events.resume()
            # ...
        someMethod = events.taskFactory(someMethod)
    Each time it's called, ob.someMethod(whatever)will return a newevents.Taskthat executes the code of thesomeMethodfunction on the
    supplied parameter(s).  Note that this may also be used in conjunction withbinding.Make, e.g.: 
        def aTask(self):
            yield self.something; events.resume()
            # ...
        aTask = binding.Make( events.taskFactory(aTask) )
    In this case, ob.aTaskwill be anevents.Taskthat runs theaTaskmethod.  This is often convenient to use withuponAssembly=True,
    so that the task is started as soon as the component is assembled. |