Exerosis
07/02/2022, 11:24 AMclass MyWrapper(init: suspend () -> (Unit)) : ExampleFrameworkApp {
  override fun onInit() = blocking { init() }
}class MyApplication : MyWrapper({
  withContext(IO) {
    http.get("..")
  }
  delay(1.second)
  .. etc.
})Nick Allen
07/05/2022, 4:52 PMso with the above dispatcher I could doAvoid any solution that involves blocking on the main thread. Launch your coroutines instead.
withContext(IO) {Moving off the main thread only helps when you are not already blocking it. This is why you need to launch from the main thread callbacks.
I think I need a local event loop or something along those lines, is there a builtin constructYes, if your dispatcher returns false for
isDispatchNeeded