mirror of
https://github.com/danog/amp.git
synced 2024-12-02 09:27:46 +01:00
Add missing generics to Future
This commit is contained in:
parent
288e8fc066
commit
25e4923d14
@ -111,6 +111,8 @@ final class Future
|
||||
|
||||
/**
|
||||
* Do not forward unhandled errors to the event loop handler.
|
||||
*
|
||||
* @return Future<T>
|
||||
*/
|
||||
public function ignore(): self
|
||||
{
|
||||
@ -129,7 +131,7 @@ final class Future
|
||||
*
|
||||
* @param \Closure(T):Tr $map
|
||||
*
|
||||
* @return Future
|
||||
* @return Future<Tr>
|
||||
*/
|
||||
public function map(\Closure $map): self
|
||||
{
|
||||
@ -160,7 +162,7 @@ final class Future
|
||||
*
|
||||
* @param \Closure(\Throwable):Tr $catch
|
||||
*
|
||||
* @return Future
|
||||
* @return Future<Tr>
|
||||
*/
|
||||
public function catch(\Closure $catch): self
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user