Files
cell/tests/parseq.ce

36 lines
567 B
Plaintext

var tree = {
id: 100,
children: [
{
id: 101,
children: [
{ id: 102, children: [] },
{ id: 103, children: [] }
]
},
{
id: 104,
children: [
{ id: 105, children: [] }
]
}
]
}
var os = use('os')
var st = os.now()
var actor
$_.start(e => {
if (actor) return
actor = e.actor
send(actor, tree, (result, reason) => {
if (reason)
log.console(reason)
else
log.console(json.encode(result))
log.console(`took ${os.now()-st} secs`)
});
}, "tests/comments")