[chuck-users] Detecting when child shred has finished
heuermh at gmail.com
Fri Sep 19 17:36:35 EDT 2008
Paul Reiners wrote:
> Is it possible to determine when a child shred has finished executing
> if you have a reference to the child shred? For example, in this code:
> // define function go()
> fun void go()
> // insert code
> // spork another, store reference to new shred in offspring
> spork ~ go() => Shred @ offspring;
> Is it possible to determine when offspring is done executing?
I have only done boiler-plate stuff with events so far ... maybe you
can fire an event at the end of your go() method and listen for that
event outside of the sporked shred?
More information about the chuck-users