Code Monkey home page Code Monkey logo

Comments (3)

shixiongfei avatar shixiongfei commented on August 16, 2024

Actually, I wrote this library for myself. However, I think your suggestion is very good and I am glad that this library can also be helpful to you.

The first suggestion I think I can make some modifications at an appropriate time.

The second suggestion needs to consider the compromise between ease of use and user customization, as I don't want to always set nRequestID in the logic.

At present, there is very little additional logic in this library, which is also intended to simplify the use.

from napi-ctp.

shixiongfei avatar shixiongfei commented on August 16, 2024

Hi @southwhale, now isLast has been passed as a parameter in the object to the callback function.

There may be more confusion and complexity between user specified nRequestID and automatic generation of nRequestID, as this is a transaction interface and we do not want to lose money due to program negligence.

Considering that JavaScript is a very flexible language, can multiple account requirements be implemented using closures or objects.

If there is no better reason, I may not support users specifying nRequestID.

from napi-ctp.

southwhale avatar southwhale commented on August 16, 2024

I agree with your point on nRequestID. Thank you.

from napi-ctp.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.