Module: Concurrent::Executor

Included in:
JavaExecutor, PerThreadExecutor, RubyExecutor, SerialExecutor
Defined in:
lib/concurrent/executor/executor.rb

Instance Method Summary collapse

Instance Method Details

#can_overflow?Boolean

Note:

Always returns ‘false`

Does the task queue have a maximum size?

Returns:

  • (Boolean)

    True if the task queue has a maximum size else false.



16
17
18
# File 'lib/concurrent/executor/executor.rb', line 16

def can_overflow?
  false
end

#serialized?Boolean

Note:

Always returns ‘false`

Does this executor guarantee serialization of its operations?

Returns:

  • (Boolean)

    True if the executor guarantees that all operations will be post in the order they are received and no two operations may occur simultaneously. Else false.



29
30
31
# File 'lib/concurrent/executor/executor.rb', line 29

def serialized?
  false
end