Module: Garcon::SerialExecutor

Includes:
Executor
Included in:
ImmediateExecutor, RubySingleThreadExecutor
Defined in:
lib/garcon/task/executor.rb

Overview

Indicates that the including ‘Executor` or `ExecutorService` guarantees that all operations will occur in the order they are post and that no two operations may occur simultaneously. This module provides no functionality and provides no guarantees. That is the responsibility of the including class. This module exists solely to allow the including object to be interrogated for its serialization status.

Examples:

class Foo
  include Garcon::SerialExecutor
end

foo = Foo.new

foo.is_a? Garcon::Executor       # => true
foo.is_a? Garcon::SerialExecutor # => true
foo.serialized?                  # => true

Instance Attribute Summary

Attributes included from Executor

#fallback_policy

Instance Method Summary collapse

Methods included from Executor

#auto_terminate?, #can_overflow?

Instance Method Details

#serialized?Boolean

Note:

Always returns ‘true`

Returns:



130
131
132
# File 'lib/garcon/task/executor.rb', line 130

def serialized?
  true
end