Skip to content

Commit 23d754a

Browse files
committed
Added close related exceptions
1 parent ecf636c commit 23d754a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/ClosedException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace WyriHaximus\React\Parallel;
4+
5+
final class ClosedException extends \Exception
6+
{
7+
public static function create(): self
8+
{
9+
return new self('Pool is closed and won\'t run your Closure');
10+
}
11+
}

src/ClosingException.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php declare(strict_types=1);
2+
3+
namespace WyriHaximus\React\Parallel;
4+
5+
final class ClosingException extends \Exception
6+
{
7+
}

0 commit comments

Comments
 (0)