In algorithms for methods like getScreenDetails() the parallel tasks need to queue a task back to the main thread in order to perform actions like resolving a Promise or firing an event. See "serial port task source" and the places where it is used for example language for queuing tasks to execute back on the main thread after running in parallel.
In algorithms for methods like
getScreenDetails()
the parallel tasks need to queue a task back to the main thread in order to perform actions like resolving aPromise
or firing an event. See "serial port task source" and the places where it is used for example language for queuing tasks to execute back on the main thread after running in parallel.