{
    "mode": "ri",
    "parameter": "Concurrent::Promises::Channel",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/Concurrent%3A%3APromises%3A%3AChannel/json",
    "generated": "2026-07-29T03:10:14Z",
    "sections": {
        "Concurrent::Promises::Channel < Concurrent::Synchronization::Object": {
            "content": "------------------------------------------------------------------------",
            "subsections": []
        },
        "Includes:": {
            "content": "Comparable (from /home/chedong/.local/share/rdoc)\n\n(from /home/chedong/.local/share/rdoc)\n------------------------------------------------------------------------\nA first in first out channel that accepts messages with push family of\nmethods and returns messages with pop family of methods. Pop and push\noperations can be represented as futures, see {#popop} and {#pushop}.\nThe capacity of the channel can be limited to support back pressure, use\ncapacity option in {#initialize}. {#pop} method blocks ans {#popop}\nreturns pending future if there is no message in the channel. If the\ncapacity is limited the {#push} method blocks and {#pushop} returns\npending future.\n\n{include:file:docs-source/channel.out.md} @!macro warn.edge\n------------------------------------------------------------------------",
            "subsections": []
        },
        "Constants:": {
            "content": "ANY:\nAn object which matches anything (with #===)\n\nUNLIMITEDCAPACITY:\nDefault capacity of the Channel, makes it accept unlimited number of\nmessages.\n\n",
            "subsections": []
        },
        "Class methods:": {
            "content": "new\nselect\nselectmatching\nselectop\nselectopmatching\ntryselect\ntryselectmatching\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "<=>\ncapacity\ninspect\npartialselectop\npeek\npeekmatching\npop\npopmatching\npopop\npopopmatching\npush\npushop\nselect\nselectmatching\nselectop\nselectopmatching\nsize\ntos\ntrypop\ntrypopmatching\ntrypush\ntryselect\ntryselectmatching\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}