Giter Site home page Giter Site logo

Comments (3)

hannobraun avatar hannobraun commented on August 16, 2024

Good catch, thank you! I'll correct this the next time I work on this project (which might take a good number of months). If someone wants to create a pull request in the meantime, that would be very appreciated.

Edit: To clarify, I think the problem here is that the documentation is wrong, not the code.

from inotify-rs.

zacheryph avatar zacheryph commented on August 16, 2024

I would not consider this a problem or bad documentation? The underlying EAGAIN and EWOULDBLOCK are error codes, but I would not call them error conditions.

As well, the documentation does already clearly state that an empty iterator is returned if nothing is available. It also says to use read_events_blocking if you want at least one result. EAGAIN and EWOULDBLOCK say "nothing is available without blocking". There is in fact no error condition though.

from inotify-rs.

hannobraun avatar hannobraun commented on August 16, 2024

@zacheryph I think you're right, strictly speaking, but in my experience, it usually helps if documentation is as explicit as possible. I don't consider this issue a big deal at all, but I think it would be an improvement if that one sentence were changed.

from inotify-rs.

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.