Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Why uses TopologyLocal Callbacks and not Promises in his API? #439

Open
S0c5 opened this issue Jun 18, 2021 · 1 comment
Open

Why uses TopologyLocal Callbacks and not Promises in his API? #439

S0c5 opened this issue Jun 18, 2021 · 1 comment

Comments

@S0c5
Copy link

S0c5 commented Jun 18, 2021

Hello guys! Awesome project but looking inside your code I saw callback implementations, I wanted to know what Is the reason behind.

@bergloman
Copy link
Contributor

Hi. The reason is simply due to age - when the project was in incubation phase, the promises mechanism was not standardized, many libraries had no support for them, our target environment was conservative regarding the node version etc. Hence we couldn't use promises back then. A prototype of promise-based implementation was started but many breaking changes would need to be handled, so the development didn't proceed.

However, we do support async bolt and spout wrappers to handle promise-based implementations, see IBoltAsync and ISpoutAsync.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants