Revision e321ca6f
Added by Marc Dequènes over 13 years ago
- ID e321ca6f2a16f3d882f0c1008a71b3f55cf9e102
lib/cyborghood/cyborg.rb | ||
---|---|---|
EventMachine.next_tick { EventMachine.stop_event_loop }
|
||
end
|
||
|
||
def try_stop
|
||
if ready_to_stop?
|
||
EventMachine.stop_event_loop
|
||
else
|
||
EventMachine.next_tick { try_stop }
|
||
end
|
||
end
|
||
|
||
# core capabilities
|
||
def capabilities
|
||
[]
|
||
... | ... | |
|
||
def process_system_notification(msg)
|
||
end
|
||
|
||
def try_stop
|
||
if ready_to_stop?
|
||
EventMachine.stop_event_loop
|
||
else
|
||
EventMachine.next_tick { try_stop }
|
||
end
|
||
end
|
||
end
|
||
|
||
autoload :BotNet, 'cyborghood/cyborg/botnet'
|
Also available in: Unified diff
[evol] created a DSL for client-side calls (several conditions (calls only at the moment) can be joined together in order to exploit parallel tasks via asynchronous calls)