Skip to content

Commit b9c3e1b

Browse files
committed
Rename to Whenable
1 parent e592612 commit b9c3e1b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Awaitable Interoperability
1+
# Whenable
22

33
The purpose of this proposal is to provide a common interface for simple placeholder objects returned from async operations. This will allow libraries and components from different vendors to create coroutines regardless of the library. This proposal is not designed to replace promise implementations that may be chained. Instead, this interface may be extended by promise (future, delayed) implementations.
44

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Interop\Async\Awaitable;
3+
namespace Interop\Async\Whenable;
44

55
/**
6-
* Simple interface for awaitable objects representing the future value of asynchronous operations.
6+
* Simple interface for whenable objects representing the future value of asynchronous operations.
77
*/
8-
interface Awaitable
8+
interface Whenable
99
{
1010
/**
11-
* Calling this method without a callback will throw the exception from a failed awaitable in an uncatchable way.
11+
* Calling this method without a callback will throw the exception from a failed whenable in an uncatchable way.
1212
*
1313
* @param callable(\Throwable|\Exception $exception = null, mixed $result = null)|null $onResolved
1414
*/

0 commit comments

Comments
 (0)