public function commitAsync( string $group = "default" )
	{
		$list = [];
		$requests = @$this->async_requests[$group] ?: [];

		/** @var AsyncRequest $request */
		foreach ($requests as $request)
			$list[] = $request->getPromise();

		unset($this->async_requests[$group]);
		settle($list)->wait();
	}
public function commitAsync( string $group = "default" )
	{
		$list = [];
		$requests = @$this->async_requests[$group] ?: [];

		/** @var AsyncRequest $request */
		foreach ($requests as $request)
			$list[] = $request->getPromise();

		unset($this->async_requests[$group]);
		settle($list)->wait();
	}
public function commitAsync ( string $ group = "default" ) { $ list = [ ] ; $ requests = @ $ this -> async_requests [ $ group ] ? : [ ] ; /** @var AsyncRequest $request */ foreach ( $ requests as $ request ) $ list [ ] = $ request -> getPromise ( ) ; unset ( $ this -> async_requests [ $ group ] ) ; settle ( $ list ) -> wait ( ) ; }
Initiates async requests from given group. Waits until completed.

@param string $group
Initiates async requests from given group . Waits until completed .