* @param code The task body to run
* @return A LazyDataflowVariable, which gets assigned the value returned from the supplied code
*/
public static <T> Promise<T> lazyTask(final Closure<T> code) {
final PGroup group = retrieveCurrentDFPGroup();
return group.lazyTask(code);
}
/**
* Creates a new task assigned to a thread from the current parallel group.
* The task is lazy, since it only gets executed if the returned Promise instance is read or a then-callback is registered on it.