Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support RunBlocking (Ktor Network calls in a Synchronous manner) #1421

Closed
cody1024d opened this issue Oct 31, 2019 · 4 comments
Closed

Support RunBlocking (Ktor Network calls in a Synchronous manner) #1421

cody1024d opened this issue Oct 31, 2019 · 4 comments
Assignees
Labels

Comments

@cody1024d
Copy link

I was hoping things have potentially changed since this: #678

I tried using the work around described there, but to no success.

My use case is as follows:

I am writing a framework to be used during the testing process of IOS and Android. Within this process I will need to perform several network calls (for authentication reasons) before my tests can execute, and thus I need to run Ktor in a blocking manner.

Is there any work arounds, etc. that can be done to support this?

@e5l e5l self-assigned this Nov 8, 2019
@uOOOO
Copy link

uOOOO commented Jan 22, 2020

Sometimes only network call methods should be exposed not whole MV* pattern in kotlin native multiplatform shared code. So I think this is very necessary feature.

@bootstraponline
Copy link

I agree this would be awesome. We're thinking about Kotlin multiplatform at Robinhood. This is one of the blocking issues for us.

@oleg-larshin
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

@e5l
Copy link
Member

e5l commented Apr 7, 2022

Kotlix.coroutines now have runTest to solve this issue: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/run-test.html

@e5l e5l closed this as completed Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants