[chuck-users] Attempt to exit a sporked shred.

Will Hardwick-Smith whardwicksmith at gmail.com
Sat Nov 1 01:47:05 EDT 2014

I want to end/exit/destroy a sporked shred.

In this example code, I attempt to exit a sporked function. When executed,
the shred doesn't stop as I'd expect.

fun void foo(){

    1::week => now;
> }
> spork ~ foo() @=> Shred shred;
> 2::second => now;
> shred.exit();
> 1::week => now;

How can I exit the sporked shred?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20141101/24be7a68/attachment.html>

More information about the chuck-users mailing list