Tornado
Tornado copied to clipboard
A library for asynchronous programming :tornado: 🐎
Because current logo is mostly black and it cannot be seen correctly with dark mode (_first world problem_). Gimp to the rescue => a white blurred background
Allow add Swoole Adapter
Currently, any exception thrown by an adapter is propagated to upper context outside of Tornado. It means that if you intend to catch a particular exception, it may be broken...
See [React\LoopInterface](https://reactphp.org/event-loop/#loopinterface). Will improve interoperability possibilities. May require some new features, like promise cancellation, or signal handling.
Give possibility to cancel a promise, to stop the job necessary to resolve this promise. See what's possible in other libraries: * https://reactphp.org/promise/#cancellablepromiseinterface * https://amphp.org/amp/cancellation/ Seems needed for #12
To be able to use existing libraries returning "thenable" promises, we could add a method like ``` EventLoop::promiseFromThenable($thenablePromise): Promise ``` Up to each event loop implementation to deal with it....
AMPHP use now Fiber via Revolt eventloop. I made this PR to update the current AMPHP implementation of Tornado to this new version. I don't think it's a good idea...