CryptoKraken / crypto-kraken-services

MIT License
0 stars 1 forks source link

Remove the RepeatPromise class #86

Closed skubarenko closed 6 years ago

skubarenko commented 6 years ago

At the moment every method of the exchange service is executed asynchronously, these methods return an instance of the RepeatPromise which tries to run own executor again when the executor throws exceptions. Therefore the exchange service tries to execute own operation when errors (a network disconnection, a server is overloaded, etc) occur.

We propose to remove this class and suggest users use own implementation or third-party library (for example rxjs) to achieve this behavior.