Giter Site home page Giter Site logo

py-coroutine's Issues

refactor(timer): 在单独的线程中检查计时器

目前的计时器实现在事件循环线程,作为事件队列中的任务,iotime 会严重影响计时器的准确性。
最好能在新线程中唤醒正在阻塞的事件循环,从而准确执行定时器。

feature(eventloop): 实现事件循环的自动结束

当所有异步任务结束后,停止事件循环,结束主线程。

可能需要抽象一个实体,对异步任务进行计数。

此外,还应考虑失败的异步任务,例如设置连接超时时间,抛出异常,令 Future 失败,这里还需要修改 Future。

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.