callback patterns and idioms in Python
callback patterns and idioms in Python
callback patterns and idioms in Python
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
"Concurrent" <strong>callback</strong>s<br />
thread<strong>in</strong>g.Thread(target=..,args=..,kwargs=..)<br />
call backs to target(*args,**kwargs)<br />
at the t.start() event [or later...]<br />
*<strong>in</strong> a separate thread* (the key po<strong>in</strong>t!-)<br />
stacklet.tasklet(callable)<br />
calls back accord<strong>in</strong>g to setup<br />
when tasklet active <strong>and</strong> front-of-queue<br />
channels, reactivation, reschedul<strong>in</strong>g<br />
process<strong>in</strong>g.Process(...like thread<strong>in</strong>g.Thread...)<br />
NWS' sleigh: eachElem, eachWorker<br />
21