Class: Contender::Pool::DiscardPolicy

Inherits:
RejectionPolicy show all
Defined in:
lib/contender/pool/rejection_policy.rb

Overview

Rejection policy that silently discards a task

Instance Method Summary collapse

Instance Method Details

#on_rejection(task, executor) ⇒ undefined

Parameters:

Returns:

  • (undefined)


42
43
44
# File 'lib/contender/pool/rejection_policy.rb', line 42

def on_rejection(task, executor)
  # Just ignore the task
end