Definition of a single task type, also a factory for an `Entry`.
Definition of a single task type, also a factory for an `Entry`. If not given, the builder name is the function name. Function must be callable or `None` (in that case only manually inserted values can be accessed). Optionally updates resulting callable object to resemble the wrapped function (name, doc, etc.).
Run the main function with `*args` and `**kwargs`. Correctly handles both generator and ordinary main functions, returning the final value. With `only_deps=True` only executes the part until `yield` (or nothing for ordinary functions). If given, runs after_deps() after the dependency phase. Does not set the context etc.
Run the main function with `config`, properly handling `*args` and `**kwargs`. Correctly handles both generator and ordinary main functions, returning the final value. With `only_deps=True` only executes the part until `yield` (or nothing for ordinary functions). Does not set the context etc.