reactphp / socket

Async, streaming plaintext TCP/IP and secure TLS socket server and client connections for ReactPHP.
https://reactphp.org/socket/
MIT License
1.21k stars 157 forks source link

Internal improvement to avoid unhandled rejection for future Promise API #258

Closed clue closed 3 years ago

clue commented 3 years ago

This changeset applies some internal improvements to avoid unhandled rejection for future Promise API. This does not affect current behavior in any way (test cases are unaffected), but makes sure we do not use any unhandled promise rejections anymore. As discussed in https://github.com/reactphp/promise/issues/87 this could otherwise raise some error/warning in future.

Resolves / closes #248 Refs #214