upgraded to run in parallel
This commit is contained in:
@ -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) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user