<div dir="ltr">Paul Reiners;<br><br><span dir="ltr"></span><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is it possible to determine when a child shred has finished executing<br>
if you have a reference to the child shred? </blockquote><div><br>I'd say so, let me quote from the "VERSIONS" file from the latest release;<br><br> - (added) int Shred.done() // is the shred done?<br> int Shred.running() // is the shred running? <br>
</div></div><br>I'm not 100% sure what "running" is supposed to refer to (perhaps I misunderstand it?) but "done" seems to suit your needs;<br><br>================== 8<================<br>fun void foo()<br>
{<br> second => now;<br> }<br> <br>spork ~ foo() @=> Shred bar;<br><br><<<bar.done()>>>;<br><<<bar.running()>>>; // why is this 0? Bug?<br>2::second => now;<br><<<bar.done()>>>;<br>
<<<bar.running()>>>;<br>==========8<======================<br><br>Please note that calling these on a Shred object with no shred process attached to it will return more or less random numbers which is probably a bug.<br>
<br>Yours,<br>Kas.<br></div>