class Polyphony::Interjection

Interjection is used to run arbitrary code on arbitrary fibers at any point

Public Class Methods

new(proc) click to toggle source
# File lib/polyphony/core/exceptions.rb, line 36
def initialize(proc)
  @proc = proc
end

Public Instance Methods

invoke() click to toggle source
# File lib/polyphony/core/exceptions.rb, line 40
def invoke
  @proc.call
end