class Concurrent::SerializedExecutionDelegator
@see Concurrent::SerializedExecution
@see [SimpleDelegator](www.ruby-doc.org/stdlib-2.1.2/libdoc/delegate/rdoc/SimpleDelegator.html)
guarantees serialized execution of tasks.
A wrapper/delegator for any ‘ExecutorService` that
def initialize(executor)
def initialize(executor) @executor = executor @serializer = SerializedExecution.new super(executor) end
def post(*args, &task)
def post(*args, &task) raise ArgumentError.new('no block given') unless block_given? return false unless running? @serializer.post(@executor, *args, &task) end