mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-12 09:54:09 +02:00
PHP7 Pool
This commit is contained in:
@@ -33,21 +33,15 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Pool.php
|
||||
WorkerPool.php
|
||||
|
||||
.. literalinclude:: Pool.php
|
||||
.. literalinclude:: WorkerPool.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Processor.php
|
||||
StringReverseWorker.php
|
||||
|
||||
.. literalinclude:: Processor.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Worker.php
|
||||
|
||||
.. literalinclude:: Worker.php
|
||||
.. literalinclude:: StringReverseWorker.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -60,11 +54,5 @@ Tests/PoolTest.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Tests/TestWorker.php
|
||||
|
||||
.. literalinclude:: Tests/TestWorker.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Pool
|
||||
.. __: http://en.wikipedia.org/wiki/Object_pool_pattern
|
||||
|
Reference in New Issue
Block a user