Sha256: fbae67a6a540ac892f28dfba4ec32897d9e60964824a8f4a0deb6ca37f6f8752

Contents?: true

Size: 316 Bytes

Versions: 15

Compression:

Stored size: 316 Bytes

Contents

# -*- coding: utf-8 -*-
require 'tengine/core'

# アクティベーション時にEventMachineの初期化を行うことができる。

setup_eventmachine do
  puts "setup_eventmachine"
  EM.add_periodic_timer(3) do
    fire(:event72)
  end
end

driver :driver72 do
  on:event72 do
    puts "handler72"
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tengine_core-1.2.2 examples/uc72_setup_eventmachine.rb
tengine_core-1.2.1 examples/uc72_setup_eventmachine.rb
tengine_core-1.2.0 examples/uc72_setup_eventmachine.rb
tengine_core-1.1.0 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.39 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.38 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.37 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.36 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.35 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.34 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.33 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.32 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.31 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.30 examples/uc72_setup_eventmachine.rb
tengine_core-0.5.28 examples/uc72_setup_eventmachine.rb