public function __construct(callable $function, array $args) { $this->function = $function; $this->args = $args; $this->generator = null; }