upgraded to run in parallel

This commit is contained in:
Peli de Halleux
2018-01-23 14:52:41 -08:00
parent 18480080e7
commit 387effbdd0
9 changed files with 14 additions and 14 deletions

View File

@ -11,7 +11,7 @@ namespace sensors.internal {
// This is implementation for the simulator.
control.runInBackground(() => {
control.runInParallel(() => {
let prev = query()
changeHandler(prev, prev)
while (true) {

View File

@ -271,7 +271,7 @@ void setupThread(Action a, TValue arg = 0, void (*runner)(Thread *) = NULL, TVal
}
}
void runInBackground(Action a) {
void runInParallel(Action a) {
setupThread(a);
}