Sha256: 2676680b210625d7d5faa55ea2e0cc38cba092a908c99634af52d54a106049ae
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
module Vedeu class EventLoop class << self def start new.start end end def initialize @running = true end def start tick end def stop @running = false end def tick while @running do command = Interfaces.defined.input stop if command == "stop" Interfaces.defined.output(command) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.9 | lib/vedeu/process/event_loop.rb |