ExitStatus → ExitResult

This commit is contained in:
Aaron Piotrowski
2017-01-16 23:24:59 -06:00
parent 03cd67c30f
commit b51e4f7ba6
8 changed files with 23 additions and 23 deletions

View File

@@ -28,7 +28,7 @@ interface Channel {
* @throws \Amp\Parallel\SynchronizationError If the context has not been started or the context
* unexpectedly ends.
* @throws \Amp\Parallel\ChannelException If sending on the channel fails.
* @throws \Error If an ExitStatus object is given.
* @throws \Error If an ExitResult object is given.
* @throws \Amp\Parallel\SerializationException If serializing the data fails.
*/
public function send($data): Promise;

View File

@@ -4,7 +4,7 @@ namespace Amp\Parallel\Sync\Internal;
use Amp\Parallel\PanicError;
class ExitFailure implements ExitStatus {
class ExitFailure implements ExitResult {
/** @var string */
private $type;

View File

@@ -2,7 +2,7 @@
namespace Amp\Parallel\Sync\Internal;
interface ExitStatus {
interface ExitResult {
/**
* @return mixed Return value of the callable given to the execution context.
*

View File

@@ -2,7 +2,7 @@
namespace Amp\Parallel\Sync\Internal;
class ExitSuccess implements ExitStatus {
class ExitSuccess implements ExitResult {
/** @var mixed */
private $result;