Esempio n. 1
0
def task(name):
    return mark('task', True)
Esempio n. 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)
Esempio n. 3
0
def priority(priority):
    '''Specify priority of the generator'''

    return mark('priority', priority)
Esempio n. 4
0
def task(name):
    return mark('task', True)