Class: EventMachine::JEM

Inherits:
Object
  • Object
show all
Defined in:
lib/jeventmachine.rb

Overview

This thunk class used to be called EM, but that caused conflicts with the alias “EM” for module EventMachine. (FC, 20Jun08)

Instance Method Summary collapse

Instance Method Details

#eventCallback(a1, a2, a3, a4) ⇒ Object



103
104
105
106
107
# File 'lib/jeventmachine.rb', line 103

def eventCallback a1, a2, a3, a4
  s = String.from_java_bytes(a3.array[a3.position...a3.limit]) if a3
  EventMachine::event_callback a1, a2, s || a4
  nil
end