Roger Pack
2007-Nov-05 15:44 UTC
[Eventmachine-talk] Eventmachine-talk Digest, Vol 19, Issue 2
> Thinking out loud here. If anyone has any insight I''d appreciate it. > > Is there a way to run one iteration of EM?You can have a block that immediately calls stop_server> Something like a public > EventMachine_t::_RunOnce. Barring that, is there a way to add a block > of code to run at every quantum? Would constantly adding periodic > timers be too expensive for something like a GUI?Is one periodic timer ever 1ms enough or something like that? Now a question SPAWNED_PROCESSES says [TODO, present the outbound network i/o use case, and clarify that spawned processes are interleaved with normal i/o operations and don''t interfere with them at all. how exactly do spawned processes interplay with I/o, exactly? Sure they''re message queues, but...it seems to me like they would just flit through their message stack quite quickly (or do they block until they process one message, then handle the next?) Anyway next_tick will probably work for now. Thanks! -Roger -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20071105/faaa3ec6/attachment.html