Just basic case doesn't work: GlobalScope.launch(b...
# kotlin-native
a
Just basic case doesn't work: GlobalScope.launch(backgroundDispatcher) { CoroutineWorker.withContext(backgroundDispatcher) HttpClient().get<HttpResponse>(urlString = "https://google.com") } }
Throws this: Exception in completion handler ResumeAwaitOnCompletion[AwaitContinuation(Shareable[wrong thread]){<NSHTTPURLResponse: 0x2804203a0> { URL: https://google.com/ } { Status Code: 301, Headers {\n \"Cache-Control\" = (\n \"public, max-age=2592000\"\n );\n \"Content-Length\" = (\n 220\n );\n \"Content-Type\" = (\n \"text/html; charset=UTF-8\"\n );\n Date = (\n \"Tue, 14 Apr 2020 115629 GMT\"\n );\n Expires = (\n \"Thu, 14 May 2020 115629 GMT\"\n );\n Location = (\n \"https://www.google.com/\"\n );\n Server = (\n gws\n );\n \"alt-svc\" = (\n \"quic=\\\":443\\\"; ma=2592000; v=\\\"46,43\\\",h3-Q050=\\\":443\\\"; ma=2592000,h3-Q049=\\\":443\\\"; ma=2592000,h3-Q048=\\\":443\\\"; ma=2592000,h3-Q046=\\\":443\\\"; ma=2592000,h3-Q043=\\\":443\\\"; ma=2592000,h3-T050=\\\":443\\\"; ma=2592000\"\n );\n \"x-frame-options\" = (\n SAMEORIGIN\n );\n \"x-xss-protection\" = (\n 0\n );\n} }}@7dbcb788] for CompletableDeferredImpl{Completed}@7bc47e98
a
This won't work as of now