Giter Site home page Giter Site logo

Comments (4)

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


Title: It is recommended to slightly enhance the existing implementation of event

from tbox.

waruqi avatar waruqi commented on May 25, 2024

你这个就是 win event 的手动重置,目前的自动重置 还是 手动重置,都是常规用法,适合不同的用户需求,不可能为了改成手动重置,我再去改接口的内部行为,还去改接口,这会 break 一堆现有用户,然后再来一堆其他用户反馈 应该改成自动重置模式。

另外,你现在的需求,直接用 semaphore 就完事了,也不会多几行代码,没必要非得改 event 。而且我也懒得改,你可以自己基于 semaphore 稍微封装下。

from tbox.

Issues-translate-bot avatar Issues-translate-bot commented on May 25, 2024

Bot detected the issue body's language is not English, translate it automatically.


What you are doing is the manual reset of win event. The current automatic reset or manual reset are both common usage and suitable for different user needs. It is impossible to change the internal behavior of the interface to manual reset. To change the interface, this will break a bunch of existing users.

In addition, for your current needs, you can just use semaphore, and it won't cost more than a few lines of code. There is no need to change event. And I'm too lazy to change it. You can encapsulate it based on semaphore.

from tbox.

duyanning avatar duyanning commented on May 25, 2024

master...duyanning:tbox:master

Please take a look at it. It may be useful one day.

from tbox.

Related Issues (20)

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.