Skip to content

Commit e716aab

Browse files
committed
Update interface description and callable definition
1 parent 84dc866 commit e716aab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Awaitable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace Interop\Async;
44

55
/**
6-
* Simple interface for awaitable objects representing the future value of asynchronous operations.
6+
* Awaitable object representing the future value of an asynchronous operation.
77
*/
88
interface Awaitable
99
{
1010
/**
1111
* Registers a callback to be invoked when the awaitable is resolved.
1212
*
13-
* @param callable(\Throwable|\Exception $exception = null, mixed $result = null) $onResolved
13+
* @param callable(\Throwable|\Exception|null $exception, mixed $result) $onResolved
1414
*
1515
* @return void
1616
*/

0 commit comments

Comments
 (0)