1. No idea, but maybe a more complete example that compiles and runs and 
shows the problem would help. Bonus points for reproducing with localhost JVM, 
and not android 
  2. Yeah, that's how asyncdispatch works. You have to run the loop to make 
async things happen. In your case you run it by `waitFor`, or `runForever`, etc 
(see `asyncdispatch` docs)... Note that currently running Nim `asyncdispatch` 
loop in android main thread is a terribly bad idea, android will likely kill 
your app for that. If you're not afraid of `epoll`, `ALooper`, and NDK, you can 
do it the right way, like I've done it for macos/ios: 
[https://github.com/nim-lang/Nim/pull/7571](https://github.com/nim-lang/Nim/pull/7571)


Reply via email to