soiz1 commited on
Commit
9b47a72
·
verified ·
1 Parent(s): f6fb16f

Update src/engine/runtime.js

Browse files
Files changed (1) hide show
  1. src/engine/runtime.js +9 -0
src/engine/runtime.js CHANGED
@@ -1148,6 +1148,14 @@ class Runtime extends EventEmitter {
1148
  return 'HATS_STARTED'
1149
  }
1150
 
 
 
 
 
 
 
 
 
1151
  /**
1152
  * Event name for thread finishing.
1153
  * @const {string}
@@ -2449,6 +2457,7 @@ class Runtime extends EventEmitter {
2449
  thread.tryCompile();
2450
  }
2451
 
 
2452
  return thread;
2453
  }
2454
 
 
1148
  return 'HATS_STARTED'
1149
  }
1150
 
1151
+ /**
1152
+ * Event name for thread initialization.
1153
+ * @const {string}
1154
+ */
1155
+ static get THREAD_STARTED () {
1156
+ return 'THREAD_STARTED'
1157
+ }
1158
+
1159
  /**
1160
  * Event name for thread finishing.
1161
  * @const {string}
 
2457
  thread.tryCompile();
2458
  }
2459
 
2460
+ this.emit(Runtime.THREAD_STARTED, thread);
2461
  return thread;
2462
  }
2463