1
0
mirror of https://github.com/danog/parallel.git synced 2024-11-30 04:39:01 +01:00

Add internal annotations

This commit is contained in:
Aaron Piotrowski 2017-07-27 23:49:20 -05:00
parent 3d5e1c6e6f
commit 0df4fa9cce
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
5 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,7 @@ namespace Amp\Parallel\Worker\Internal;
use Amp\Parallel\Worker\Task;
/** @internal */
class Job {
/** @var string */
private $id;

View File

@ -6,6 +6,7 @@ use Amp\Parallel\Worker\Task;
use Amp\Parallel\Worker\Worker;
use Amp\Promise;
/** @internal */
class PooledWorker implements Worker {
/** @var callable */
private $push;

View File

@ -7,6 +7,7 @@ use Amp\Parallel\Worker\TaskError;
use Amp\Parallel\Worker\TaskException;
use Amp\Promise;
/** @internal */
class TaskFailure extends TaskResult {
const PARENT_EXCEPTION = 0;
const PARENT_ERROR = 1;

View File

@ -4,6 +4,7 @@ namespace Amp\Parallel\Worker\Internal;
use Amp\Promise;
/** @internal */
abstract class TaskResult {
/** @var string Task identifier. */
private $id;

View File

@ -5,6 +5,7 @@ namespace Amp\Parallel\Worker\Internal;
use Amp\Promise;
use Amp\Success;
/** @internal */
class TaskSuccess extends TaskResult {
/** @var mixed Result of task. */
private $result;