I do not know if this is a bug or I need to handle things differently, but I have a problem. I have a Background Worker where I have some resumable subs.
I have attached a reproducer. Better to look at it as it hard to explain the problem.
I need all the code to run on the BackgroundWorker Thread, but as you can see if you run the project code after the Resumable Subs that return a value is running on the main thread instead of the worker thread.
I have attached a reproducer. Better to look at it as it hard to explain the problem.
I need all the code to run on the BackgroundWorker Thread, but as you can see if you run the project code after the Resumable Subs that return a value is running on the main thread instead of the worker thread.
B4X:
2018-02-09 18:41:38.045:INFO::main: Logging initialized @227ms to org.eclipse.jetty.util.log.StdErrLog
2018-02-09 18:41:38.302:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT
2018-02-09 18:41:38.396:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2018-02-09 18:41:38.396:INFO:oejs.session:main: No SessionScavenger set, using defaults
2018-02-09 18:41:38.399:INFO:oejs.session:main: Scavenging every 600000ms
2018-02-09 18:41:38.405:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@64616ca2{/,file:///C:/WORK/DEV/B4J/TestNestedWaitFor/Objects/www,AVAILABLE}
2018-02-09 18:41:38.412:INFO:oejs.AbstractNCSARequestLog:main: Opened C:\WORK\DEV\B4J\TestNestedWaitFor\Objects\logs\b4j-2018_02_09.request.log
2018-02-09 18:41:38.526:INFO:oejs.AbstractConnector:main: Started ServerConnector@52af6cff{HTTP/1.1,[http/1.1]}{0.0.0.0:51042}
2018-02-09 18:41:38.526:INFO:oejs.Server:main: Started @710ms
1 Current Thread: Thread-9
Registered
2 Current Thread: Thread-9
3 Current Thread: Thread-9
4 Current Thread: Thread-9
7 Current Thread: Thread-9
5 Current Thread: Thread-9
8 Current Thread: Thread-9
9 Current Thread: Thread-9
6 Current Thread: Thread-9
13 Current Thread: Thread-9
10 Current Thread: main
11 Current Thread: main
14 Current Thread: Thread-9
12 Current Thread: main
9 Current Thread: main
13 Current Thread: Thread-9
10 Current Thread: main
11 Current Thread: main
14 Current Thread: Thread-9
12 Current Thread: main