Is this classes definition really necessary? In general, promises are defined in the order they are specified, so just using the "execRun_cmd" variable after it's definitions above, with the "any::" class, should work. Or have you noticed otherwise?