Tornado icon indicating copy to clipboard operation
Tornado copied to clipboard

Creates an adapter Tornado -> React\LoopInterface

Open b-viguier opened this issue 6 years ago • 2 comments

See React\LoopInterface. Will improve interoperability possibilities. May require some new features, like promise cancellation, or signal handling.

b-viguier avatar Sep 17 '18 08:09 b-viguier

Promise cancellation isn't required for a loop adapter, as promises and the event loop are entirely separated in ReactPHP.

kelunik avatar Sep 07 '19 17:09 kelunik

@kelunik You're absolutely right 😄 By design, Tornado doesn't separate these 2 concepts, maybe it confused me a bit while writing this… Or maybe it was to manager cancelTimer in a unified way in Tornado 🤔 Anyway, we need to cancellable promises for an edge case in promiseRace: we want to keep the first settled promise and cancel others… It's in the TODO list 😉

b-viguier avatar Sep 08 '19 09:09 b-viguier