Skip to content

documentation/protocol issue with peek_ready() #61

@QuadeHale

Description

@QuadeHale

peek_ready gives the first job in the using() tube, not the first job you would get from watching().

The documentation says:
To peek at the same job that would be returned by reserve -- the next ready job -- use peek-ready:

When in reality, peek_ready() returns the next job that will be consumed on the tube you are using, not watching. This completely threw me for a loop.

I wanted to double check and make sure this was intentional and confirmed before I changed the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions