var time = use('time');

return {
    test_overling: function() {
        var underlingCount = 0;
        var targetCount = 3;
        var i = 0;

        for (i = 0; i < targetCount; i++) {
            $start(function(greet) {
                underlingCount++;
                log.console("Underling spawned: " + underlingCount);
            }, "tests/underling_actor", ["test" + i]);
        }

        log.console("Spawned " + targetCount + " underlings (async)");
    }
}
