IRC Logs for #circuits Saturday, 2014-01-11

*** mfdl has joined #circuits00:59
*** mfdl has quit IRC02:34
*** mfdl has joined #circuits03:09
*** mfdl has quit IRC03:16
*** mfdl has joined #circuits08:01
*** mfdl has quit IRC08:14
*** anunnaki_ has joined #circuits09:27
prologichi anunnaki09:27
*** anunnaki_ has quit IRC10:24
*** dkostousov has quit IRC11:19
*** dkostousov has joined #circuits11:20
*** Osso has joined #circuits15:41
*** mfdl has joined #circuits17:23
*** mfdl has quit IRC17:30
*** qwebirc45070 has joined #circuits20:59
qwebirc45070Hi everyone! I have a question: how can I suspend function until the handler of event returns a value?  I need this to get data from unknown function in web request handler.21:10
prologicqwebirc45070, use the call/wait primitives21:34
prologicto create a lightweight coroutine21:34
prologicsee examples/primitives/21:34
*** qwebirc45070 has quit IRC21:46
prologic:)21:47
prologiccircuits uses them to implement lightweight coroutines in event handlers21:47
prologicso you basically do something like:21:47
prologicyield self.call(MyEvent())21:47
prologicor similar21:47
prologicwhich pauses the execution of the current event handler21:47
*** mfdl has joined #circuits22:06
*** mfdl has quit IRC22:38
*** mfdl has joined #circuits23:45
*** mfdl has quit IRC23:51

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!