Doesn't this effectively happen if the method executing in the shred exits? LIke this:

1 => int running;
fun void daShred() {
 while (running) {
  1::ms => now;
 }
}

unsporkIt() {
 0 => running;
}

spork ~ daShred();

I remember that for Java threads (which admittedly isn't exactly the same as shreds), this is a recommended practice.

/Stefan

On Mon, Mar 17, 2008 at 9:19 AM, kevin <vacillates@gmail.com> wrote:
I couldn't find this in a search, but I'm not exactly sure what it's called.

I'd like to be able to unspork (despork?) a shred sometime after i've sporked it, based on OSC input.

is there a convenient way to do this?

thanks
-k

_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users




--
Release me, insect, or I will destroy the Cosmos!