On 03/09/2015 01:57 PM, Atte wrote:
I hope nothing gets changed with .exit(), since that seems the be the one that works the best :-)
I've been having huge problems with the suggested way of figuring out if
a shred is running. I've cut down the scenario as much as possible,
three files, supply your own beat:
--- lib_sporker.ck ---
public class Sporker{
public static int add(string filename){
Machine.add(filename) => int id;
return id;
}
public static void remove(int id){
Machine.remove(id);
//Shred.fromId(id).exit();
}
public static int is_running(int id){
return(Shred.fromId(id) != null);
//return Shred.fromId(id).running();
//return !Shred.fromId(id).done();
}
}
Sporker dummy;
100::week => now;
---
--- sporker.ck ---
Sporker.add("beat") => int id;
<<<id>>>;
<<