def task(name):
    return mark('task', True)
Beispiel #2
0
def generator(factory=None):
    '''Mark the function as a generator. If factory is set, the
    generator function will be passed to the factory and the result
    is used.'''

    return mark('generator', factory)
Beispiel #3
0
def priority(priority):
    '''Specify priority of the generator'''

    return mark('priority', priority)
def task(name):
    return mark('task', True)