{
    "mode": "ri",
    "parameter": "Concurrent::WrappingExecutor",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/Concurrent%3A%3AWrappingExecutor/json",
    "generated": "2026-07-29T21:47:28Z",
    "sections": {
        "Concurrent::WrappingExecutor < Synchronization::Object": {
            "content": "------------------------------------------------------------------------",
            "subsections": []
        },
        "Includes:": {
            "content": "ExecutorService (from /home/chedong/.local/share/rdoc)\n\n(from /home/chedong/.local/share/rdoc)\n------------------------------------------------------------------------\nA delegating executor which modifies each task with arguments before the\ntask is given to the target executor it delegates to. @example Count\ntask executions\ncounter          = AtomicFixnum.new\ncountexecutions = WrappingExecutor.new Concurrent.globalioexecutor do |*args, &task|\n[*args, -> *args { counter.increment; task.call *args }]\nend\n10.times { countexecutions.post { :dosomething } }\nsleep 0.01\ncounter.value #=> 10\n------------------------------------------------------------------------",
            "subsections": []
        },
        "Class methods:": {
            "content": "new\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "canoverflow?\npost\nserialized?\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}