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