ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
01-parallel.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7function parallel()
8{
9 global $DIC;
10
11 $refinery = $DIC->refinery();
12
13 $transformation = $refinery->in()->parallel(
14 array(
15 new ILIAS\Refinery\To\Transformation\IntegerTransformation(),
16 new ILIAS\Refinery\To\Transformation\IntegerTransformation(),
17 )
18 );
19
20 $result = $transformation->transform(5);
21
22 return assert(array(5, 5), $result);
23}
parallel()
Definition: 01-parallel.php:7
$result
An exception for terminatinating execution or to throw for unit testing.
Class ChatMainBarProvider \MainMenu\Provider.
$DIC
Definition: xapitoken.php:46