Lazy_Collection::__construct( callable $callback )

Array_Promise constructor.


Parameters

$callback

(callable) (Required) The callback that will be used to populate the elements.


Top ↑

Source

File: src/Tribe/Utils/Lazy_Collection.php

	public function __construct( callable $callback ) {
		$this->callback = $callback;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.14 Introduced.