mirror of
https://github.com/amphp/parallel.git
synced 2025-07-25 15:31:25 +02:00
ExitStatus → ExitResult
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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.
|
||||
*
|
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Amp\Parallel\Sync\Internal;
|
||||
|
||||
class ExitSuccess implements ExitStatus {
|
||||
class ExitSuccess implements ExitResult {
|
||||
/** @var mixed */
|
||||
private $result;
|
||||
|
||||
|
Reference in New Issue
Block a user