I thought the example from Grant Olsen was pretty simple, I modified it to do what I wanted.<div><br></div><div><a href="http://www.grant-olson.net/python/intro-to-stackless-python/browsable-html#pushing-data">http://www.grant-olson.net/python/intro-to-stackless-python/browsable-html#pushing-data</a></div>
<div><br></div><div>It allows you to create stackless 'agents' that use channels to wait for messages.</div><div><br></div><div>HTH</div><div><br></div><div>J<br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 2:34 PM, Fernando Miranda <span dir="ltr"><<a href="mailto:fcmiranda@gmail.com">fcmiranda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi there, I'm wondering which is the best way to implement a sleeping<br>
function in a tasklet without block the task pipeline. Any ideas?<br>
<br>
Many thanks.<br>
f<br>
<br>
_______________________________________________<br>
Stackless mailing list<br>
<a href="mailto:Stackless@stackless.com">Stackless@stackless.com</a><br>
<a href="http://www.stackless.com/mailman/listinfo/stackless" target="_blank">http://www.stackless.com/mailman/listinfo/stackless</a><br>
</blockquote></div><br></div>